Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e2865c23
Commit
e2865c23
authored
Nov 15, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename LabelSubscription javascript to ProjectLabelSubscription
parent
a0accaf7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/project_label_subscription.js.es6
app/assets/javascripts/project_label_subscription.js.es6
+2
-2
app/views/shared/_label.html.haml
app/views/shared/_label.html.haml
+1
-1
No files found.
app/assets/javascripts/label_subscription.js.es6
→
app/assets/javascripts/
project_
label_subscription.js.es6
View file @
e2865c23
/* eslint-disable */
(function(global) {
class LabelSubscription {
class
Project
LabelSubscription {
constructor(container) {
this.$container = $(container);
this.$buttons = this.$container.find('.js-subscribe-button');
...
...
@@ -48,6 +48,6 @@
}
}
global.
LabelSubscription =
LabelSubscription;
global.
ProjectLabelSubscription = Project
LabelSubscription;
})(window.gl || (window.gl = {}));
app/views/shared/_label.html.haml
View file @
e2865c23
...
...
@@ -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
.
Project
LabelSubscription
(
'
##{dom_id(label)} .label-subscription
'
);
-
else
:javascript
new
gl
.
GroupLabelSubscription
(
'
##{dom_id(label)} .label-subscription
'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment