From eb0a11182d5004c8eeb4069d4f80b905b1c768d4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 27 Feb 2024 14:58:23 +0100 Subject: [PATCH] user management: separate add/create and edit/remove buttons Signed-off-by: Thomas Lamprecht --- js/FetchmailView.js | 1 + js/LDAPConfig.js | 10 ++++++---- js/UserView.js | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/js/FetchmailView.js b/js/FetchmailView.js index 2a6e643..5a3ae71 100644 --- a/js/FetchmailView.js +++ b/js/FetchmailView.js @@ -71,6 +71,7 @@ Ext.define('PMG.FetchmailView', { reference: 'addBtn', handler: 'onAdd', }, + '-', { xtype: 'proxmoxButton', text: gettext('Edit'), diff --git a/js/LDAPConfig.js b/js/LDAPConfig.js index 0a114ff..c2f3917 100644 --- a/js/LDAPConfig.js +++ b/js/LDAPConfig.js @@ -523,21 +523,23 @@ Ext.define('PMG.LDAPConfigGrid', { }, tbar: [ + { + text: gettext('Create'), + handler: 'newProfile', + }, + '-', { xtype: 'proxmoxButton', text: gettext('Edit'), disabled: true, handler: 'run_editor', }, - { - text: gettext('Create'), - handler: 'newProfile', - }, { xtype: 'proxmoxStdRemoveButton', baseurl: '/config/ldap', callback: 'reload', }, + '-', { xtype: 'proxmoxButton', text: gettext('Synchronize'), diff --git a/js/UserView.js b/js/UserView.js index d82b49e..13da72c 100644 --- a/js/UserView.js +++ b/js/UserView.js @@ -121,6 +121,7 @@ Ext.define('PMG.UserView', { reference: 'addBtn', handler: 'onAdd', }, + '-', { xtype: 'proxmoxButton', text: gettext('Edit'), -- 2.39.2