ui: allow resetting unmounting maintenance

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
This commit is contained in:
Hannes Laimer 2024-11-26 12:43:23 +01:00 committed by Thomas Lamprecht
parent bb367c4d2e
commit bd25fc40a6

View File

@ -89,12 +89,11 @@ Ext.define('PBS.window.MaintenanceOptions', {
let unmounting = options['maintenance-type'] === 'unmount';
let defaultType = options['maintenance-type'] === '__default__';
if (unmounting) {
options['maintenance-type'] = '';
options['maintenance-type'] = gettext('Unmounting');
}
me.callParent([options]);
me.lookupReference('type-field').setDisabled(unmounting);
me.lookupReference('message-field').setDisabled(unmounting || defaultType);
},
});