From b90422c093f2ac410e2e5039167a15dac01d7cbe Mon Sep 17 00:00:00 2001 From: Andrey Pazychev Date: Mon, 16 Aug 2021 15:30:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D0=B4=D0=B0=D0=BB=D1=8C,=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B7=D0=B2=D0=BE=D0=BB=D1=8F=D1=8E=D1=89=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=BF=D0=BF=D1=8B=20=D0=BF=D1=80=D0=BE=D1=81=D1=82=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D0=B2=D1=81=D0=B5=20permissions=20=D0=B2?= =?UTF-8?q?=20=D0=B4=D0=B0=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=BF=D0=B0=D0=BD?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/web/aaa/group/ApplicationPermission.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ui/web/aaa/group/ApplicationPermission.js b/ui/web/aaa/group/ApplicationPermission.js index 28a35938d2..9515a40f7e 100644 --- a/ui/web/aaa/group/ApplicationPermission.js +++ b/ui/web/aaa/group/ApplicationPermission.js @@ -51,6 +51,11 @@ Ext.define("NOC.aaa.group.ApplicationPermission", { type: "expand", itemId: "expandTool", callback: "togglePanel" + }, + { + type: "plus", + tooltip: __("Set all permissions"), + callback: "setAllPermission" } ], eventLoop: function(evt) { @@ -73,6 +78,15 @@ Ext.define("NOC.aaa.group.ApplicationPermission", { }); this.setData(data); }, + setAllPermission: function() { + var data = this.getData(); + Ext.Object.each(data, function(name, app) { + Ext.each(app.perms, function(perm) { + perm.status = true; + }); + }); + this.setData(data); + }, resetPermission: function() { var data = this.getData(); Ext.Object.each(data, function(name, app) { -- GitLab