diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-24 15:19:26 +0300 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-04-24 15:19:26 +0300 |
commit | 523daec15074d406dac9bd2d59e9838ac1dcc200 (patch) | |
tree | 0e9d84c01bd31ef8c563994b2ad798f8000c322e /app/views/shared/_label.html.haml | |
parent | bc3fd40480d3cafc97e0aea1a1a047cce53ab3f5 (diff) |
Fix group dropdown
Diffstat (limited to 'app/views/shared/_label.html.haml')
-rw-r--r-- | app/views/shared/_label.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml index cf42c0d1bd4..c2357a97975 100644 --- a/app/views/shared/_label.html.haml +++ b/app/views/shared/_label.html.haml @@ -45,7 +45,7 @@ - if can_subscribe_to_label_in_different_levels?(label) %button.js-unsubscribe-button.label-subscribe-button.btn.btn-default{ class: ('hidden' if status.unsubscribed?), data: { url: toggle_subscription_path } } %span Unsubscribe - .dropdown{ class: ('hidden' unless status.unsubscribed?) } + .dropdown.dropdown-group-label{ class: ('hidden' unless status.unsubscribed?) } %button.label-subscribe-button.btn.btn-default{ data: { toggle: 'dropdown' } } %span Subscribe @@ -53,10 +53,10 @@ .dropdown-menu.dropdown-menu-align-right %ul %li - %button.js-subscribe-button.label-subscribe-button.btn.btn-default{ class: ('hidden' unless status.unsubscribed?), data: { url: toggle_subscription_project_label_path(@project, label) } } + %button.js-subscribe-button.label-subscribe-button.btn.btn-default{ class: ('hidden' unless status.unsubscribed?), data: { status: status, url: toggle_subscription_project_label_path(@project, label) } } %span Subscribe at project level %li - %button.js-subscribe-button.label-subscribe-button.btn.btn-default{ class: ('hidden' unless status.unsubscribed?), data: { url: toggle_subscription_group_label_path(label.group, label) } } + %button.js-subscribe-button.label-subscribe-button.btn.btn-default{ class: ('hidden' unless status.unsubscribed?), data: { status: status, url: toggle_subscription_group_label_path(label.group, label) } } %span Subscribe at group level - else %button.js-subscribe-button.label-subscribe-button.btn.btn-default{ data: { status: status, url: toggle_subscription_path } } |