ui: access: stream line add/edit/.. button order and separators

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-01-18 09:33:29 +01:00
parent 44de5bcc00
commit 6676409f7f
3 changed files with 13 additions and 8 deletions

View File

@ -241,6 +241,7 @@ Ext.define('PBS.config.TfaView', {
], ],
}, },
}, },
'-',
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Edit'), text: gettext('Edit'),

View File

@ -149,6 +149,7 @@ Ext.define('PBS.config.TokenView', {
handler: 'addToken', handler: 'addToken',
selModel: false, selModel: false,
}, },
'-',
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Edit'), text: gettext('Edit'),
@ -166,9 +167,10 @@ Ext.define('PBS.config.TokenView', {
return '/access/users/' + encodeURIComponent(user) + '/token/' + encodeURIComponent(tokenname); return '/access/users/' + encodeURIComponent(user) + '/token/' + encodeURIComponent(tokenname);
}, },
}, },
'-',
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Permissions'), text: gettext('Show Permissions'),
handler: 'showPermissions', handler: 'showPermissions',
disabled: true, disabled: true,
}, },

View File

@ -128,27 +128,29 @@ Ext.define('PBS.config.UserView', {
handler: 'addUser', handler: 'addUser',
selModel: false, selModel: false,
}, },
'-',
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Edit'), text: gettext('Edit'),
handler: 'editUser', handler: 'editUser',
disabled: true, disabled: true,
}, },
{
xtype: 'proxmoxButton',
text: gettext('Password'),
handler: 'setPassword',
disabled: true,
},
{ {
xtype: 'proxmoxStdRemoveButton', xtype: 'proxmoxStdRemoveButton',
baseurl: '/access/users/', baseurl: '/access/users/',
enableFn: (rec) => rec.data.userid !== 'root@pam', enableFn: (rec) => rec.data.userid !== 'root@pam',
callback: 'reload', callback: 'reload',
}, },
'-',
{ {
xtype: 'proxmoxButton', xtype: 'proxmoxButton',
text: gettext('Permissions'), text: gettext('Change Password'),
handler: 'setPassword',
disabled: true,
},
{
xtype: 'proxmoxButton',
text: gettext('Show Permissions'),
handler: 'showPermissions', handler: 'showPermissions',
disabled: true, disabled: true,
}, },