ali преди 3 години
родител
ревизия
98bd654e74
променени са 1 файла, в които са добавени 11 реда и са изтрити 1 реда
  1. 11 1
      src/components/Widgets/Other/ShowClassroomInfo/ShowClassroomInfo.vue

+ 11 - 1
src/components/Widgets/Other/ShowClassroomInfo/ShowClassroomInfo.vue

@@ -332,6 +332,16 @@ export default {
       this.loading = false
     },
 
+    reloadClassroom () {
+      this.getClassroom()
+        .then((classroom) => {
+          this.prefetchServerDataPromiseThen(classroom)
+        })
+        .catch(() => {
+          this.prefetchServerDataPromiseCatch()
+        })
+    },
+
     getTitledDateTime (dateTime) {
       return ShamsiDate.getTitledDateTime(dateTime)
     },
@@ -355,7 +365,7 @@ export default {
         APIGateway.classroom.dropByUser(classroomId)
           .then(() => {
             this.dropLoading = false
-            this.getClassroom()
+            this.reloadClassroom()
           })
           .catch(() => {
             this.dropLoading = false