Commit 7f4d490dd6a72a0aaa68e87696e0b96347ad162a
1 parent
0cb974fde1
Exists in
master
and in
2 other branches
hid snackbar from enroll students
Showing
1 changed file
with
15 additions
and
7 deletions
Show diff stats
src/pages/Course/enrollStudents.vue
... | ... | @@ -38,7 +38,13 @@ |
38 | 38 | </v-card-title> |
39 | 39 | <v-flex xs8 sm8 md3 lg2 v-if="showSearch"> |
40 | 40 | <v-layout> |
41 | - <v-text-field autofocus v-model="search" label="Search" prepend-inner-icon="search" color="primary"></v-text-field> | |
41 | + <v-text-field | |
42 | + autofocus | |
43 | + v-model="search" | |
44 | + label="Search" | |
45 | + prepend-inner-icon="search" | |
46 | + color="primary" | |
47 | + ></v-text-field> | |
42 | 48 | <v-icon @click="closeSearch" color="error">close</v-icon> |
43 | 49 | </v-layout> |
44 | 50 | </v-flex> |
... | ... | @@ -206,7 +212,7 @@ export default { |
206 | 212 | this.showLoader = false; |
207 | 213 | }); |
208 | 214 | }, |
209 | - getStudents() { | |
215 | + getStudents(message) { | |
210 | 216 | this.showLoader = true; |
211 | 217 | http() |
212 | 218 | .get("/getStudentsList", { |
... | ... | @@ -222,7 +228,7 @@ export default { |
222 | 228 | for (let i = 0; i < this.studentsData.length; i++) { |
223 | 229 | this.studentsData[i].attendence = true; |
224 | 230 | } |
225 | - this.getParticularCourse(); | |
231 | + this.getParticularCourse(message); | |
226 | 232 | }) |
227 | 233 | .catch((error) => { |
228 | 234 | console.log("err====>", error); |
... | ... | @@ -231,7 +237,7 @@ export default { |
231 | 237 | }, |
232 | 238 | getStudentTable(id) { |
233 | 239 | // console.log("id", this.getReport.courseId); |
234 | - this.getStudents(); | |
240 | + this.getStudents("noSnackbar"); | |
235 | 241 | }, |
236 | 242 | update() { |
237 | 243 | var studentsAttendence = []; |
... | ... | @@ -365,7 +371,7 @@ export default { |
365 | 371 | }); |
366 | 372 | } |
367 | 373 | }, |
368 | - getParticularCourse() { | |
374 | + getParticularCourse(message) { | |
369 | 375 | this.selected = []; |
370 | 376 | var payload = { |
371 | 377 | courseId: this.getReport.courseId, |
... | ... | @@ -387,8 +393,10 @@ export default { |
387 | 393 | } |
388 | 394 | } |
389 | 395 | } |
390 | - this.snackbar = true; | |
391 | - this.text = response.data.message; | |
396 | + if (message != "noSnackbar") { | |
397 | + this.snackbar = true; | |
398 | + this.text = response.data.message; | |
399 | + } | |
392 | 400 | }) |
393 | 401 | .catch((error) => { |
394 | 402 | this.snackbar = true; | ... | ... |