瀏覽代碼

dashfolders: disable save button after save of acl

Daniel Lee 8 年之前
父節點
當前提交
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() {