diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2018-12-07 21:35:48 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2018-12-07 21:35:48 +0300 |
commit | 767beb31e45c4576eec9030a37af832574209829 (patch) | |
tree | e6c3e69263d96eeccb2b74a61eb13bfe92cb22cf /app/assets | |
parent | 88c0984d077e2a85d684d71d036d27278cd81182 (diff) |
Revert "Merge branch '22548-reopen-error-message' into 'master'"revert-69aaa30d
This reverts merge request !22326
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes/components/comment_form.vue | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/app/assets/javascripts/notes/components/comment_form.vue b/app/assets/javascripts/notes/components/comment_form.vue index ce56beb1e6b..841fcec96e8 100644 --- a/app/assets/javascripts/notes/components/comment_form.vue +++ b/app/assets/javascripts/notes/components/comment_form.vue @@ -247,19 +247,15 @@ Please check your network connection and try again.`; } else { this.reopenIssue() .then(() => this.enableButton()) - .catch(({ data }) => { + .catch(() => { this.enableButton(); this.toggleStateButtonLoading(false); - let errorMessage = sprintf( - __('Something went wrong while reopening the %{issuable}. Please try again later'), - { issuable: this.noteableDisplayName }, + Flash( + sprintf( + __('Something went wrong while reopening the %{issuable}. Please try again later'), + { issuable: this.noteableDisplayName }, + ), ); - - if (data) { - errorMessage = Object.values(data).join('\n'); - } - - Flash(errorMessage); }); } }, |