]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: move user, token and permissions into an access control tab panel
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 15:47:18 +0000 (16:47 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 15:47:18 +0000 (16:47 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/AccessControlPanel.js [new file with mode: 0644]
www/Makefile
www/NavigationTree.js

diff --git a/www/AccessControlPanel.js b/www/AccessControlPanel.js
new file mode 100644 (file)
index 0000000..d532ea3
--- /dev/null
@@ -0,0 +1,34 @@
+Ext.define('PBS.AccessControlPanel', {
+    extend: 'Ext.tab.Panel',
+    alias: 'widget.pbsAccessControlPanel',
+    mixins: ['Proxmox.Mixin.CBind'],
+
+    title: gettext('Access Control'),
+
+    border: false,
+    defaults: {
+       border: false,
+    },
+
+    items: [
+       {
+           xtype: 'pbsUserView',
+           title: gettext('User Management'),
+           itemId: 'users',
+           iconCls: 'fa fa-user',
+       },
+       {
+           xtype: 'pbsTokenView',
+           title: gettext('API Token'),
+           itemId: 'apitokens',
+           iconCls: 'fa fa-user-o',
+       },
+       {
+           xtype: 'pbsACLView',
+           title: gettext('Permissions'),
+           itemId: 'permissions',
+           iconCls: 'fa fa-unlock',
+       },
+    ],
+
+});
index 7135df9a902efeb07c7a327a5d70f9fc01e2726f..99ea578e0e55c63cda6a28c2f9a2ca63d4cd2fd3 100644 (file)
@@ -37,6 +37,7 @@ JSSRC=                                                        \
        dashboard/RunningTasks.js                       \
        dashboard/TaskSummary.js                        \
        Utils.js                                        \
+       AccessControlPanel.js                           \
        ZFSList.js                                      \
        DirectoryList.js                                \
        LoginView.js                                    \
index d4e5d966b44de61a85029ff413a1f22577732833..f0f48c0ae5fca930b2c03fe7916c9ce13cf30fe1 100644 (file)
@@ -29,21 +29,9 @@ Ext.define('PBS.store.NavigationStore', {
                expanded: true,
                children: [
                    {
-                       text: gettext('User Management'),
-                       iconCls: 'fa fa-user',
-                       path: 'pbsUserView',
-                       leaf: true,
-                   },
-                   {
-                       text: gettext('API Token'),
-                       iconCls: 'fa fa-user-o',
-                       path: 'pbsTokenView',
-                       leaf: true,
-                   },
-                   {
-                       text: gettext('Permissions'),
-                       iconCls: 'fa fa-unlock',
-                       path: 'pbsACLView',
+                       text: gettext('Access Control'),
+                       iconCls: 'fa fa-key',
+                       path: 'pbsAccessControlPanel',
                        leaf: true,
                    },
                    {