summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/boards/components/board_sidebar.js
diff options
context:
space:
mode:
authorRajat Jain <rjain@gitlab.com>2019-04-09 15:22:54 +0530
committerRajat Jain <rjain@gitlab.com>2019-04-15 13:11:52 +0530
commite1bd2ec9302b4214d6b32b4ef198f4aeffb9e52c (patch)
tree71cd0254b879c1f0041c1612ba78714ebfa747f2 /app/assets/javascripts/boards/components/board_sidebar.js
parent0a99e0220d9371423039f05f700af3675b26624f (diff)
downloadgitlab-ce-e1bd2ec9302b4214d6b32b4ef198f4aeffb9e52c.tar.gz
Display scoped labels in Issue Boards10921-display-scoped-labels-ce
This change brings new Scoped labels to Issue board as well. With the last change, this was missed.
Diffstat (limited to 'app/assets/javascripts/boards/components/board_sidebar.js')
-rw-r--r--app/assets/javascripts/boards/components/board_sidebar.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/components/board_sidebar.js b/app/assets/javascripts/boards/components/board_sidebar.js
index 3c683e88cf3..915d1676e62 100644
--- a/app/assets/javascripts/boards/components/board_sidebar.js
+++ b/app/assets/javascripts/boards/components/board_sidebar.js
@@ -16,6 +16,7 @@ import TimeTracker from '~/sidebar/components/time_tracking/time_tracker.vue';
import MilestoneSelect from '~/milestone_select';
import RemoveBtn from './sidebar/remove_issue.vue';
import boardsStore from '../stores/boards_store';
+import { isScopedLabel } from '~/lib/utils/common_utils';
export default Vue.extend({
components: {
@@ -140,5 +141,11 @@ export default Vue.extend({
Flash(__('An error occurred while saving assignees'));
});
},
+ showScopedLabels(label) {
+ return boardsStore.scopedLabels.enabled && isScopedLabel(label);
+ },
+ helpLink() {
+ return boardsStore.scopedLabels.helpLink;
+ },
},
});