Move findAndFollowLink to lib/utils

This commit is contained in:
Mike Greiling 2018-09-18 14:43:46 -05:00
parent df1eb4fa6c
commit 08c3920ce1
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
5 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import { visitUrl } from './lib/utils/url_utility';
import { visitUrl } from './url_utility';
/**
* Helper function that finds the href of the fiven selector and updates the location.

View File

@ -3,7 +3,7 @@ import Cookies from 'js-cookie';
import Mousetrap from 'mousetrap';
import axios from './lib/utils/axios_utils';
import { refreshCurrentPage, visitUrl } from './lib/utils/url_utility';
import findAndFollowLink from './shortcuts_dashboard_navigation';
import findAndFollowLink from './lib/utils/navigation_utility';
const defaultStopCallback = Mousetrap.stopCallback;
Mousetrap.stopCallback = (e, element, combo) => {

View File

@ -1,5 +1,5 @@
import Mousetrap from 'mousetrap';
import findAndFollowLink from './shortcuts_dashboard_navigation';
import findAndFollowLink from './lib/utils/navigation_utility';
import Shortcuts from './shortcuts';
export default class ShortcutsNavigation extends Shortcuts {

View File

@ -1,6 +1,6 @@
import Mousetrap from 'mousetrap';
import ShortcutsNavigation from './shortcuts_navigation';
import findAndFollowLink from './shortcuts_dashboard_navigation';
import findAndFollowLink from './lib/utils/navigation_utility';
export default class ShortcutsWiki extends ShortcutsNavigation {
constructor() {

View File

@ -1,4 +1,4 @@
import findAndFollowLink from '~/shortcuts_dashboard_navigation';
import findAndFollowLink from '~/lib/utils/navigation_utility';
describe('findAndFollowLink', () => {
it('visits a link when the selector exists', () => {