2021-03-11 19:13:27 +05:30
|
|
|
import { GROUP_BADGE } from '~/badges/constants';
|
2018-05-09 12:01:36 +05:30
|
|
|
import initConfirmDangerModal from '~/confirm_danger_modal';
|
2018-12-13 13:39:08 +05:30
|
|
|
import dirtySubmitFactory from '~/dirty_submit/dirty_submit_factory';
|
2021-03-11 19:13:27 +05:30
|
|
|
import initFilePickers from '~/file_pickers';
|
|
|
|
import TransferDropdown from '~/groups/transfer_dropdown';
|
2019-02-15 15:39:39 +05:30
|
|
|
import groupsSelect from '~/groups_select';
|
2021-04-29 21:17:54 +05:30
|
|
|
import { initCascadingSettingsLockPopovers } from '~/namespaces/cascading_settings';
|
2021-03-11 19:13:27 +05:30
|
|
|
import mountBadgeSettings from '~/pages/shared/mount_badge_settings';
|
2018-12-13 13:39:08 +05:30
|
|
|
import projectSelect from '~/project_select';
|
2021-04-17 20:07:23 +05:30
|
|
|
import initSearchSettings from '~/search_settings';
|
2021-03-11 19:13:27 +05:30
|
|
|
import initSettingsPanels from '~/settings_panels';
|
|
|
|
import setupTransferEdit from '~/transfer_edit';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2020-06-23 00:09:42 +05:30
|
|
|
initFilePickers();
|
2018-05-09 12:01:36 +05:30
|
|
|
initConfirmDangerModal();
|
2018-11-08 19:23:39 +05:30
|
|
|
initSettingsPanels();
|
2018-12-13 13:39:08 +05:30
|
|
|
dirtySubmitFactory(
|
|
|
|
document.querySelectorAll('.js-general-settings-form, .js-general-permissions-form'),
|
|
|
|
);
|
2018-11-20 20:47:30 +05:30
|
|
|
mountBadgeSettings(GROUP_BADGE);
|
2019-12-04 20:38:33 +05:30
|
|
|
setupTransferEdit('.js-group-transfer-form', '#new_parent_group_id');
|
2018-12-13 13:39:08 +05:30
|
|
|
|
2019-02-15 15:39:39 +05:30
|
|
|
// Initialize Subgroups selector
|
|
|
|
groupsSelect();
|
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
projectSelect();
|
2020-06-23 00:09:42 +05:30
|
|
|
|
2021-04-17 20:07:23 +05:30
|
|
|
initSearchSettings();
|
2021-04-29 21:17:54 +05:30
|
|
|
initCascadingSettingsLockPopovers();
|
2021-04-17 20:07:23 +05:30
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
return new TransferDropdown();
|
2018-11-08 19:23:39 +05:30
|
|
|
});
|