diff options
Diffstat (limited to 'app/assets/javascripts/groups_select.js')
-rw-r--r-- | app/assets/javascripts/groups_select.js | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/app/assets/javascripts/groups_select.js b/app/assets/javascripts/groups_select.js index 64bba91eb4d..34e984a9bb9 100644 --- a/app/assets/javascripts/groups_select.js +++ b/app/assets/javascripts/groups_select.js @@ -1,21 +1,11 @@ import $ from 'jquery'; import { escape } from 'lodash'; +import { groupsPath } from '~/vue_shared/components/group_select/utils'; import { __ } from '~/locale'; import Api from './api'; import { loadCSSFile } from './lib/utils/css_utils'; import { select2AxiosTransport } from './lib/utils/select2_utils'; -const groupsPath = (groupsFilter, parentGroupID) => { - switch (groupsFilter) { - case 'descendant_groups': - return Api.descendantGroupsPath.replace(':id', parentGroupID); - case 'subgroups': - return Api.subgroupsPath.replace(':id', parentGroupID); - default: - return Api.groupsPath; - } -}; - const groupsSelect = () => { loadCSSFile(gon.select2_css_path) .then(() => { |