diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-14 21:06:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-14 21:06:24 +0300 |
commit | 8c30d396c5a789080345303330069981aa06e4af (patch) | |
tree | 6fd96c7c80bec2f1101af34d749ada58e59b38ee /app/assets | |
parent | 429d1abad29d379d8bc8f5219eb72384ad485deb (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/labels_select.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/app/assets/javascripts/labels_select.js b/app/assets/javascripts/labels_select.js index 72de3b5d726..22b062563b5 100644 --- a/app/assets/javascripts/labels_select.js +++ b/app/assets/javascripts/labels_select.js @@ -32,7 +32,6 @@ export default class LabelsSelect { $selectbox, $sidebarCollapsedValue, $value, - $dropdownMenu, abilityName, defaultLabel, issueUpdateURL, @@ -68,7 +67,6 @@ export default class LabelsSelect { $sidebarCollapsedValue = $block.find('.sidebar-collapsed-icon span'); $sidebarLabelTooltip = $block.find('.js-sidebar-labels-tooltip'); $value = $block.find('.value'); - $dropdownMenu = $dropdown.parent().find('.dropdown-menu'); $loading = $block.find('.block-loading').fadeOut(); fieldName = $dropdown.data('fieldName'); initialSelected = $selectbox @@ -456,21 +454,9 @@ export default class LabelsSelect { } $loading.fadeIn(); - const oldLabels = boardsStore.detail.issue.labels; boardsStore.detail.issue .update($dropdown.attr('data-issue-update')) - .then(() => { - if (isScopedLabel(label)) { - const prevIds = oldLabels.map(label => label.id); - const newIds = boardsStore.detail.issue.labels.map(label => label.id); - const differentIds = _.difference(prevIds, newIds); - $dropdown.data('marked', newIds); - $dropdownMenu - .find(differentIds.map(id => `[data-label-id="${id}"]`).join(',')) - .removeClass('is-active'); - } - }) .then(fadeOutLoader) .catch(fadeOutLoader); } else if (handleClick) { |