Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2018-02-20 22:43:37 +0300
committerJose Ivan Vargas <jvargas@gitlab.com>2018-03-02 01:10:04 +0300
commit84e01b3e7a521c66077245a62247bd47a3731ddb (patch)
tree16a3be2872fd365f9606fc39765fce285a619dca /app/views/shared/_label.html.haml
parentd5c001864964afb73efca0c6b592f8a1e4d152b9 (diff)
Changed selector names, address code concerns
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r--app/views/shared/_label.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml
index a7b85ac4469..b49be4a4376 100644
--- a/app/views/shared/_label.html.haml
+++ b/app/views/shared/_label.html.haml
@@ -48,10 +48,11 @@
.pull-right.hidden-xs.hidden-sm
- if label.is_a?(ProjectLabel) && label.project.group && can?(current_user, :admin_label, label.project.group)
- %a.js-promote-project-label.btn.btn-transparent.btn-action.has-tooltip{ title: _('Promote to Group Label'),
+ %a.js-promote-project-label-button.btn.btn-transparent.btn-action.has-tooltip{ title: _('Promote to Group Label'),
data: { url: promote_project_label_path(label.project, label),
label_title: label.title,
label_color: label.color,
+ label_text_color: label.text_color,
target: '#promote-label-modal',
container: 'body',
toggle: 'modal' },