diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-04 17:00:39 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-07-24 22:10:38 +0300 |
commit | b550e6ee67ebfc1cfbbb7a77414f9fe05ffad419 (patch) | |
tree | 74bd51c0a48c7408644f9443dadb6139eacfdad7 /app/views/projects/notes | |
parent | 662f5edd36b6910074df222474bab4ff4849d313 (diff) |
Posts to rails to update note eventually
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r-- | app/views/projects/notes/_note.html.haml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index 0c42296e492..57ffd6e5432 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -21,9 +21,11 @@ - if access and not note.system %span.note-role.hidden-xs= access - unless note.system - %resolve-btn{ ":note-id" => note.id, ":resolved" => "false", "inline-template" => true, "v-ref:note_#{note.id}" => true } - %button.note-action-button.line-resolve-btn{ type: "button", ":class" => "{ 'is-active': isResolved }", ":aria-label" => "buttonText", "@click" => "resolve", ":title" => "buttonText" } - = icon("check") + %resolve-btn{ ":endpoint" => "'#{resolve_namespace_project_note_path(note.project.namespace, note.project, note)}'", ":note-id" => note.id, ":resolved" => "false", "inline-template" => true, "v-ref:note_#{note.id}" => true } + .note-action-button + = icon("spin spinner", "v-show" => "loading") + %button.line-resolve-btn{ type: "button", ":class" => "{ 'is-active': isResolved }", ":aria-label" => "buttonText", "@click" => "resolve", ":title" => "buttonText", "v-show" => "!loading", "v-el:button" => true } + = icon("check") - if current_user and not note.system = link_to '#', title: 'Award Emoji', class: 'note-action-button note-emoji-button js-add-award js-note-emoji', data: { position: 'right' } do = icon('spinner spin') |