Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2017-06-28 16:21:10 +0300
committerFatih Acet <acetfatih@gmail.com>2017-07-21 22:35:25 +0300
commit44ccf2b1148e53a3b9148ea90a2f45cc8c8a000e (patch)
treecbc809b3ea871cdaf9db1242254e023b175b63b7 /app
parent01496486382b90dd6642057370a9c710c80d2b41 (diff)
IssueNotesRefactor: Change data attr path.
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/issues/_discussion.html.haml4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/views/projects/issues/_discussion.html.haml b/app/views/projects/issues/_discussion.html.haml
index 04e3211fb87..8e4b9f8910a 100644
--- a/app/views/projects/issues/_discussion.html.haml
+++ b/app/views/projects/issues/_discussion.html.haml
@@ -3,7 +3,7 @@
= link_to 'Reopen issue', issue_path(@issue, issue: {state_event: :reopen}, format: 'json'), data: {original_text: "Reopen issue", alternative_text: "Comment & reopen issue"}, class: "btn btn-nr btn-reopen btn-comment js-note-target-reopen #{issue_button_visibility(@issue, false)}", title: 'Reopen issue'
= link_to 'Close issue', issue_path(@issue, issue: {state_event: :close}, format: 'json'), data: {original_text: "Close issue", alternative_text: "Comment & close issue"}, class: "btn btn-nr btn-close btn-comment js-note-target-close #{issue_button_visibility(@issue, true)}", title: 'Close issue'
-%section{ data: { discussions_path: discussions_namespace_project_issue_path(@project.namespace, @project, @issue, format: :json) } }
+%section{ data: { discussions_path: discussions_namespace_project_issue_path(@project.namespace, @project, @issue, format: :json), new_session_path: new_session_path(:user, redirect_to_referer: 'yes') } }
#js-notes
- content_for :page_specific_javascripts do
= webpack_bundle_tag 'common_vue'
@@ -16,5 +16,3 @@
:javascript
window.gl.issueData = #{serialize_issuable(@issue)};
window.gl.currentUserData = #{UserSerializer.new.represent(current_user).to_json};
-
-%section#note-form{ data: { new_session_path: new_session_path(:user, redirect_to_referer: 'yes') } }