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',
text: gettext('Edit'),

View File

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

View File

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