ui: realm sync: let users set 'remove vanished options' independently

and label it correctly. The 'Properties' option was mislabeled,
it means 'remove vanished fields from synced users', not 'remove
fields from vanished users'.

So don't couple that with the 'Entries' option, and update the label
to convey the right meaning.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-05-02 15:15:20 +02:00 committed by Thomas Lamprecht
parent d9455193f1
commit 350f4dcb0e
2 changed files with 2 additions and 18 deletions

View File

@ -99,22 +99,6 @@ Ext.define('PVE.panel.LDAPSyncInputPanel', {
extend: 'Proxmox.panel.InputPanel',
xtype: 'pveAuthLDAPSyncPanel',
controller: {
xclass: 'Ext.app.ViewController',
control: {
'proxmoxcheckbox[name=remove-vanished-entry]': {
change: function(_f, removeEntries) {
let propertyField = this.getView()
.down('proxmoxcheckbox[name=remove-vanished-properties]');
propertyField.setDisabled(removeEntries);
if (removeEntries) {
propertyField.setValue(true);
}
},
},
},
},
editableAttributes: ['email'],
editableDefaults: ['scope', 'enable-new'],
default_opts: {},
@ -312,7 +296,7 @@ Ext.define('PVE.panel.LDAPSyncInputPanel', {
xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Properties'),
name: 'remove-vanished-properties',
boxLabel: gettext('Remove properties from vanished users.'),
boxLabel: gettext('Remove vanished properties from synced users.'),
},
],
},

View File

@ -138,7 +138,7 @@ Ext.define('PVE.dc.SyncWindow', {
xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Properties'),
name: 'remove-vanished-properties',
boxLabel: gettext('Remove properties from vanished users.'),
boxLabel: gettext('Remove vanished properties from synced users.'),
},
],
},