Просмотр исходного кода

dashfolders: disable save button after save of acl

Daniel Lee 8 лет назад
Родитель
Сommit
eef37c4071
1 измененных файлов с 7 добавлено и 3 удалено
  1. 7 3
      public/app/features/dashboard/acl/acl.ts

+ 7 - 3
public/app/features/dashboard/acl/acl.ts

@@ -89,9 +89,13 @@ export class AclCtrl {
       });
     }
 
-    return this.backendSrv.post(`/api/dashboards/id/${this.dashboard.id}/acl`, {
-      items: updated,
-    });
+    return this.backendSrv
+      .post(`/api/dashboards/id/${this.dashboard.id}/acl`, {
+        items: updated,
+      })
+      .then(() => {
+        this.canUpdate = false;
+      });
   }
 
   typeChanged() {