diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-02-09 17:07:20 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-02-09 18:56:41 +0000 |
commit | d637f87f88b40704291d7a01032af09853afb4e4 (patch) | |
tree | 40becbcd8457096386ec19621ee0010847cb26d6 /app/views | |
parent | a4a47cfba87a618698eab36bd7b6427f4f27d0de (diff) | |
download | gitlab-ce-d637f87f88b40704291d7a01032af09853afb4e4.tar.gz |
Makes close/reopen issue request to inside the vue app
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/issues/_discussion.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/projects/issues/_discussion.html.haml b/app/views/projects/issues/_discussion.html.haml index 9779c1985d5..11b5e02f1e0 100644 --- a/app/views/projects/issues/_discussion.html.haml +++ b/app/views/projects/issues/_discussion.html.haml @@ -12,6 +12,8 @@ markdown_docs_path: help_page_path('user/markdown'), quick_actions_docs_path: help_page_path('user/project/quick_actions'), notes_path: notes_url, + close_issue_path: issue_path(@issue, issue: { state_event: :close }, format: 'json'), + reopen_issue_path: issue_path(@issue, issue: { state_event: :reopen }, format: 'json'), last_fetched_at: Time.now.to_i, noteable_data: serialize_issuable(@issue), current_user_data: UserSerializer.new.represent(current_user, only_path: true).to_json } } |