Commit ac6f8f44b48f7a932194f8f2bc4ae366753f538e
1 parent
a4ac8d20ff
Exists in
master
and in
2 other branches
reset student form
Showing
3 changed files
with
17 additions
and
4 deletions
Show diff stats
src/Services/http.js
... | ... | @@ -63,6 +63,7 @@ export default () => { |
63 | 63 | token: null, |
64 | 64 | data: null, |
65 | 65 | isUserLoggedIn: false, |
66 | + isSchoolLoggedIn: false, | |
66 | 67 | id: null, |
67 | 68 | role: null, |
68 | 69 | // schoolId: null, |
... | ... | @@ -70,6 +71,7 @@ export default () => { |
70 | 71 | schoolRole: null, |
71 | 72 | studentsData: [], |
72 | 73 | }); |
74 | + window.getApp.$emit("APP_LOGOUT"); | |
73 | 75 | console.log("store is - ",vm1.$store.state) |
74 | 76 | vm1.$router.push({ name: "Login" }); |
75 | 77 | // vm1.$store.dispatch("Id", null); | ... | ... |
src/pages/Students/students.vue
... | ... | @@ -880,7 +880,13 @@ |
880 | 880 | </v-card-title> |
881 | 881 | <v-flex xs8 sm7 lg2 md3 v-if="showSearch"> |
882 | 882 | <v-layout> |
883 | - <v-text-field autofocus v-model="search" label="Search" prepend-inner-icon="search" color="primary"></v-text-field> | |
883 | + <v-text-field | |
884 | + autofocus | |
885 | + v-model="search" | |
886 | + label="Search" | |
887 | + prepend-inner-icon="search" | |
888 | + color="primary" | |
889 | + ></v-text-field> | |
884 | 890 | <v-icon @click="closeSearch" color="error">close</v-icon> |
885 | 891 | </v-layout> |
886 | 892 | </v-flex> |
... | ... | @@ -1009,13 +1015,17 @@ |
1009 | 1015 | icon="warning" |
1010 | 1016 | >Your search for "{{ search }}" found no results.</v-alert> |
1011 | 1017 | </v-data-table> |
1012 | - <!-- ****** ADD STUDENTS DETAILS****** --> | |
1018 | + <!-- DIALOG -- ADD STUDENTS DETAILS --> | |
1013 | 1019 | <v-dialog v-model="addStudentDialog" max-width="1280"> |
1014 | 1020 | <v-card flat class="card-style pa-2" dark> |
1015 | 1021 | <v-layout> |
1016 | 1022 | <v-flex xs12> |
1017 | 1023 | <label class="title text-xs-center">Add Student</label> |
1018 | - <v-icon size="24" class="right" @click="addStudentDialog = false">cancel</v-icon> | |
1024 | + <v-icon | |
1025 | + size="24" | |
1026 | + class="right" | |
1027 | + @click="$refs.parentForm.reset();$refs.parentFormLgScr.reset();$refs.form.reset();e2 = 1;addStudentDialog = false" | |
1028 | + >cancel</v-icon> | |
1019 | 1029 | </v-flex> |
1020 | 1030 | </v-layout> |
1021 | 1031 | <v-container fluid> |
... | ... | @@ -1199,7 +1209,7 @@ |
1199 | 1209 | </v-form> |
1200 | 1210 | </v-flex> |
1201 | 1211 | <v-flex xs12 sm12 class="hidden-xs-only hidden-sm-only"> |
1202 | - <v-form ref="parentForm" v-model="valid" lazy-validation> | |
1212 | + <v-form ref="parentFormLgScr" v-model="valid" lazy-validation> | |
1203 | 1213 | <v-layout wrap> |
1204 | 1214 | <v-flex xs12 sm6> |
1205 | 1215 | <v-layout> | ... | ... |