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
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-05-17 18:06:17 +0300
committerPhil Hughes <me@iamphill.com>2017-05-17 18:06:17 +0300
commitcf0cc9726d26212e79d915339acb06edda726ec3 (patch)
treeaba73666ead47c32daf255b54d959a79a31f2362 /app/assets/javascripts/issue_show
parent81c69c288b626a5bea2d5abddfe5dab1107e35e1 (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.vue14
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;