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:
parent
d9455193f1
commit
350f4dcb0e
@ -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.'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -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.'),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user