Commit dcbf19cba49fd73536b8af68cc61fa35a86c7caa
1 parent
7efe027624
Exists in
master
and in
2 other branches
further reset forms
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
src/pages/Academic/subject.vue
... | ... | @@ -370,7 +370,7 @@ |
370 | 370 | <v-layout> |
371 | 371 | <v-flex xs12> |
372 | 372 | <label class="title text-xs-center">Add Subject</label> |
373 | - <v-icon size="24" class="right" @click="addSubjectDialog = false">cancel</v-icon> | |
373 | + <v-icon size="24" class="right" @click="$refs.form.reset();addSubjectDialog = false">cancel</v-icon> | |
374 | 374 | </v-flex> |
375 | 375 | </v-layout> |
376 | 376 | <v-container fluid fill-height> |
... | ... | @@ -682,6 +682,7 @@ export default { |
682 | 682 | this.text = "New Subject added successfully"; |
683 | 683 | this.color = "green"; |
684 | 684 | this.addLoading = false; |
685 | + this.$refs.form.reset() | |
685 | 686 | this.addSubjectDialog = false; |
686 | 687 | this.getClassSubject(_id); |
687 | 688 | }) | ... | ... |
src/pages/Mark/mark.vue
... | ... | @@ -166,7 +166,7 @@ |
166 | 166 | <v-layout class="pa-3 card-style white--text"> |
167 | 167 | <v-flex xs12> |
168 | 168 | <label class="title text-xs-center">Add Mark</label> |
169 | - <v-icon size="24" class="right white--text" @click="addMarkDialog = false">cancel</v-icon> | |
169 | + <v-icon size="24" class="right white--text" @click="$refs.form.reset();addMarkDialog = false">cancel</v-icon> | |
170 | 170 | </v-flex> |
171 | 171 | </v-layout> |
172 | 172 | <v-form ref="form" v-model="valid" lazy-validation> |
... | ... | @@ -585,6 +585,7 @@ export default { |
585 | 585 | this.addMarkDialog = false; |
586 | 586 | this.text = response.data.message; |
587 | 587 | this.color = "green"; |
588 | + this.$refs.form.reset() | |
588 | 589 | } |
589 | 590 | } catch (error) { |
590 | 591 | this.snackbar = true; | ... | ... |
src/pages/Mark/markDistribution.vue
... | ... | @@ -121,7 +121,7 @@ |
121 | 121 | <v-layout> |
122 | 122 | <v-flex xs12> |
123 | 123 | <label class="title text-xs-center">Add Mark Distribution</label> |
124 | - <v-icon size="24" class="right" @click="addMarkDistributionDialog = false">cancel</v-icon> | |
124 | + <v-icon size="24" class="right" @click="$refs.form.reset();addMarkDistributionDialog = false">cancel</v-icon> | |
125 | 125 | </v-flex> |
126 | 126 | </v-layout> |
127 | 127 | <v-form ref="form" v-model="valid" lazy-validation> | ... | ... |