Move findAndFollowLink to lib/utils
This commit is contained in:
parent
df1eb4fa6c
commit
08c3920ce1
|
@ -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.
|
|
@ -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) => {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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', () => {
|
Loading…
Reference in New Issue