diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-17 18:06:17 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-17 18:06:17 +0300 |
commit | cf0cc9726d26212e79d915339acb06edda726ec3 (patch) | |
tree | aba73666ead47c32daf255b54d959a79a31f2362 /app/assets/javascripts/issue_show | |
parent | 81c69c288b626a5bea2d5abddfe5dab1107e35e1 (diff) |
Stops formState from updating if the form is already open
[ci skip]
Diffstat (limited to 'app/assets/javascripts/issue_show')
-rw-r--r-- | app/assets/javascripts/issue_show/components/app.vue | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/assets/javascripts/issue_show/components/app.vue b/app/assets/javascripts/issue_show/components/app.vue index 87757b1a35d..47d9a27e99e 100644 --- a/app/assets/javascripts/issue_show/components/app.vue +++ b/app/assets/javascripts/issue_show/components/app.vue @@ -79,12 +79,14 @@ export default { }, methods: { openForm() { - this.showForm = true; - this.store.formState = { - title: this.state.titleText, - confidential: this.isConfidential, - description: this.state.descriptionText, - }; + if (!this.showForm) { + this.showForm = true; + this.store.formState = { + title: this.state.titleText, + confidential: this.isConfidential, + description: this.state.descriptionText, + }; + } }, closeForm() { this.showForm = false; |