diff options
Diffstat (limited to 'app/assets/javascripts/search_autocomplete_utils.js')
-rw-r--r-- | app/assets/javascripts/search_autocomplete_utils.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/assets/javascripts/search_autocomplete_utils.js b/app/assets/javascripts/search_autocomplete_utils.js deleted file mode 100644 index a9a0f941e93..00000000000 --- a/app/assets/javascripts/search_autocomplete_utils.js +++ /dev/null @@ -1,19 +0,0 @@ -import { getPagePath } from './lib/utils/common_utils'; - -export const isInGroupsPage = () => getPagePath() === 'groups'; - -export const isInProjectPage = () => getPagePath() === 'projects'; - -export const getProjectSlug = () => { - if (isInProjectPage()) { - return document?.body?.dataset?.project; - } - return null; -}; - -export const getGroupSlug = () => { - if (isInProjectPage() || isInGroupsPage()) { - return document?.body?.dataset?.group; - } - return null; -}; |