Commit 425dbdd2 authored by Phil Hughes's avatar Phil Hughes

fixed label subscription & merge conflicts

parent 887227e0
...@@ -263,7 +263,6 @@ import initIssuableSidebar from './init_issuable_sidebar'; ...@@ -263,7 +263,6 @@ import initIssuableSidebar from './init_issuable_sidebar';
new ZenMode(); new ZenMode();
new gl.GLForm($('.release-form'), true); new gl.GLForm($('.release-form'), true);
break; break;
case 'projects:merge_requests:conflicts:show':
case 'projects:merge_requests:show': case 'projects:merge_requests:show':
new gl.Diff(); new gl.Diff();
shortcut_handler = new ShortcutsIssuable(true); shortcut_handler = new ShortcutsIssuable(true);
...@@ -381,7 +380,15 @@ import initIssuableSidebar from './init_issuable_sidebar'; ...@@ -381,7 +380,15 @@ import initIssuableSidebar from './init_issuable_sidebar';
if ($('.prioritized-labels').length) { if ($('.prioritized-labels').length) {
new gl.LabelManager(); new gl.LabelManager();
} }
new gl.ProjectLabelSubscription('.label-subscription'); $('.label-subscription').each((i, el) => {
const $el = $(el);
if ($el.find('.dropdown-group-label').length) {
new gl.GroupLabelSubscription($el);
} else {
new gl.ProjectLabelSubscription($el);
}
});
break; break;
case 'projects:network:show': case 'projects:network:show':
// Ensure we don't create a particular shortcut handler here. This is // Ensure we don't create a particular shortcut handler here. This is
......
/* eslint-disable no-new */ /* eslint-disable no-new */
/* global UsersSelect */
/* global LabelsSelect */ /* global LabelsSelect */
/* global MilestoneSelect */ /* global MilestoneSelect */
/* global IssueStatusSelect */ /* global IssueStatusSelect */
/* global SubscriptionSelect */ /* global SubscriptionSelect */
import UsersSelect from './users_select';
export default () => { export default () => {
new UsersSelect(); new UsersSelect();
new LabelsSelect(); new LabelsSelect();
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* global Flash */ /* global Flash */
import Vue from 'vue'; import Vue from 'vue';
import initIssuableSidebar from '../init_issuable_sidebar';
import './merge_conflict_store'; import './merge_conflict_store';
import './merge_conflict_service'; import './merge_conflict_service';
import './mixins/line_conflict_utils'; import './mixins/line_conflict_utils';
...@@ -19,6 +20,8 @@ $(() => { ...@@ -19,6 +20,8 @@ $(() => {
resolveConflictsPath: conflictsEl.dataset.resolveConflictsPath resolveConflictsPath: conflictsEl.dataset.resolveConflictsPath
}); });
initIssuableSidebar();
gl.MergeConflictsResolverApp = new Vue({ gl.MergeConflictsResolverApp = new Vue({
el: '#conflicts', el: '#conflicts',
data: mergeConflictsStore.state, data: mergeConflictsStore.state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment