diff options
author | kushalpandya <kushal@gitlab.com> | 2017-10-05 19:53:29 +0530 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-10-05 19:53:29 +0530 |
commit | 29fee00225347daff7f87ea166c82db141472ea3 (patch) | |
tree | 1ae31bfb5320879a4fda0b3dc77938649b5f6e02 /app/assets | |
parent | 00f76de09a42d2957ced317d102df532eb6bfd75 (diff) | |
download | gitlab-ce-29fee00225347daff7f87ea166c82db141472ea3.tar.gz |
Add new subgroup/project droplab button initialization on Group homepage
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/dispatcher.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/dispatcher.js b/app/assets/javascripts/dispatcher.js index bbaa4e4d91e..4f9849d72f6 100644 --- a/app/assets/javascripts/dispatcher.js +++ b/app/assets/javascripts/dispatcher.js @@ -76,6 +76,7 @@ import initProjectVisibilitySelector from './project_visibility'; import GpgBadges from './gpg_badges'; import UserFeatureHelper from './helpers/user_feature_helper'; import initChangesDropdown from './init_changes_dropdown'; +import NewGroupChild from './groups/new_group_child'; import { ajaxGet, convertPermissionToBoolean } from './lib/utils/common_utils'; (function() { @@ -388,10 +389,15 @@ import { ajaxGet, convertPermissionToBoolean } from './lib/utils/common_utils'; new gl.Activities(); break; case 'groups:show': + const newGroupChildWrapper = document.querySelector('.js-new-project-subgroup'); shortcut_handler = new ShortcutsNavigation(); new NotificationsForm(); new NotificationsDropdown(); new ProjectsList(); + + if (newGroupChildWrapper) { + new NewGroupChild(newGroupChildWrapper); + } break; case 'groups:group_members:index': new gl.MemberExpirationDate(); |