From eef37c4071e72b58a6e7cd95a2680dd3b633161e Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Wed, 20 Dec 2017 15:00:13 +0100 Subject: [PATCH] dashfolders: disable save button after save of acl --- public/app/features/dashboard/acl/acl.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/app/features/dashboard/acl/acl.ts b/public/app/features/dashboard/acl/acl.ts index d26d64ced28..b9a3337432e 100644 --- a/public/app/features/dashboard/acl/acl.ts +++ b/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() {