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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
472604be
Commit
472604be
authored
Aug 21, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix toggle subscription link for groups
parent
b40b7cab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/subscription.js
app/assets/javascripts/subscription.js
+1
-1
app/views/shared/boards/components/sidebar/_notifications.html.haml
...shared/boards/components/sidebar/_notifications.html.haml
+1
-1
No files found.
app/assets/javascripts/subscription.js
View file @
472604be
...
...
@@ -19,7 +19,7 @@ class Subscription {
button
.
classList
.
add
(
'
disabled
'
);
const
isSubscribed
=
buttonSpan
.
innerHTML
.
trim
().
toLowerCase
()
!==
'
subscribe
'
;
const
toggleActionUrl
=
this
.
containerElm
.
dataset
.
url
;
const
toggleActionUrl
=
this
.
containerElm
.
dataset
.
url
.
replace
(
'
:project_path
'
,
gl
.
issueBoards
.
BoardsStore
.
detail
.
issue
.
project
.
path
)
;
$
.
post
(
toggleActionUrl
,
()
=>
{
button
.
classList
.
remove
(
'
disabled
'
);
...
...
app/views/shared/boards/components/sidebar/_notifications.html.haml
View file @
472604be
-
if
current_user
.block.light.subscription
{
":data-url"
=>
"'#{
milestones_label_path
}/' + issue.iid + '/toggle_subscription'"
}
.block.light.subscription
{
":data-url"
=>
"'#{
build_issue_link_base
}/' + issue.iid + '/toggle_subscription'"
}
%span
.issuable-header-text.hide-collapsed.pull-left
Notifications
%button
.btn.btn-default.pull-right.js-subscribe-button.issuable-subscribe-button.hide-collapsed
{
type:
"button"
}
...
...
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