summaryrefslogtreecommitdiff
path: root/app/views/projects/notes
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-26 13:44:51 +0100
committerPhil Hughes <me@iamphill.com>2016-07-26 13:44:51 +0100
commit6537a4a8feac08031b3be2133f6756afb3310254 (patch)
treedf2996b3371cf34ea7721c7017a2e38e4c05ebd8 /app/views/projects/notes
parentc926cdfa4fbe00be7a7a447b3f23059fda7d7f3c (diff)
downloadgitlab-ce-6537a4a8feac08031b3be2133f6756afb3310254.tar.gz
Correctly resolves/unresolves discussions
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r--app/views/projects/notes/_note.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 0fce8d06b5f..c90be872ff4 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -24,13 +24,14 @@
- if note.resolvable?
- if can?(current_user, :resolve_note, note)
- %resolve-btn{ ":namespace" => "'#{note.project.namespace.path}/#{note.project.path}'",
+ %resolve-btn{ ":namespace-path" => "'#{note.project.namespace.path}'",
+ ":project-path" => "'#{note.project.path}'",
":discussion-id" => "'#{note.discussion_id}'",
":note-id" => note.id,
":resolved" => note.resolved?,
"inline-template" => true,
"v-ref:note_#{note.id}" => true }
-
+
.note-action-button
= icon("spin spinner", "v-show" => "loading")
%button.line-resolve-btn{ type: "button",