Rename LabelSubscription javascript to ProjectLabelSubscription
This commit is contained in:
parent
a0accaf7cc
commit
e2865c232e
|
@ -1,6 +1,6 @@
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
(function(global) {
|
(function(global) {
|
||||||
class LabelSubscription {
|
class ProjectLabelSubscription {
|
||||||
constructor(container) {
|
constructor(container) {
|
||||||
this.$container = $(container);
|
this.$container = $(container);
|
||||||
this.$buttons = this.$container.find('.js-subscribe-button');
|
this.$buttons = this.$container.find('.js-subscribe-button');
|
||||||
|
@ -48,6 +48,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
global.LabelSubscription = LabelSubscription;
|
global.ProjectLabelSubscription = ProjectLabelSubscription;
|
||||||
|
|
||||||
})(window.gl || (window.gl = {}));
|
})(window.gl || (window.gl = {}));
|
|
@ -79,7 +79,7 @@
|
||||||
- if current_user && defined?(@project)
|
- if current_user && defined?(@project)
|
||||||
- if label.is_a?(ProjectLabel)
|
- if label.is_a?(ProjectLabel)
|
||||||
:javascript
|
:javascript
|
||||||
new gl.LabelSubscription('##{dom_id(label)} .label-subscription');
|
new gl.ProjectLabelSubscription('##{dom_id(label)} .label-subscription');
|
||||||
- else
|
- else
|
||||||
:javascript
|
:javascript
|
||||||
new gl.GroupLabelSubscription('##{dom_id(label)} .label-subscription');
|
new gl.GroupLabelSubscription('##{dom_id(label)} .label-subscription');
|
||||||
|
|
Loading…
Reference in New Issue