diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-15 21:01:44 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-17 15:10:13 -0200 |
commit | e2865c232efd4350dd82d0fbdfdf2f226e4e8461 (patch) | |
tree | 78de20903a9e0af41763e8fa3883a497036d0170 /app | |
parent | a0accaf7cce23f53066335629e52407172ef60c5 (diff) | |
download | gitlab-ce-e2865c232efd4350dd82d0fbdfdf2f226e4e8461.tar.gz |
Rename LabelSubscription javascript to ProjectLabelSubscription
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/project_label_subscription.js.es6 (renamed from app/assets/javascripts/label_subscription.js.es6) | 4 | ||||
-rw-r--r-- | app/views/shared/_label.html.haml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/label_subscription.js.es6 b/app/assets/javascripts/project_label_subscription.js.es6 index 4ee8e02b088..fd5146e2f12 100644 --- a/app/assets/javascripts/label_subscription.js.es6 +++ b/app/assets/javascripts/project_label_subscription.js.es6 @@ -1,6 +1,6 @@ /* eslint-disable */ (function(global) { - class LabelSubscription { + class ProjectLabelSubscription { constructor(container) { this.$container = $(container); this.$buttons = this.$container.find('.js-subscribe-button'); @@ -48,6 +48,6 @@ } } - global.LabelSubscription = LabelSubscription; + global.ProjectLabelSubscription = ProjectLabelSubscription; })(window.gl || (window.gl = {})); diff --git a/app/views/shared/_label.html.haml b/app/views/shared/_label.html.haml index fb75e130140..e2495b00f52 100644 --- a/app/views/shared/_label.html.haml +++ b/app/views/shared/_label.html.haml @@ -79,7 +79,7 @@ - if current_user && defined?(@project) - if label.is_a?(ProjectLabel) :javascript - new gl.LabelSubscription('##{dom_id(label)} .label-subscription'); + new gl.ProjectLabelSubscription('##{dom_id(label)} .label-subscription'); - else :javascript new gl.GroupLabelSubscription('##{dom_id(label)} .label-subscription'); |