mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-13 21:05:25 +00:00
ui: allow resetting unmounting maintenance
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
This commit is contained in:
parent
bb367c4d2e
commit
bd25fc40a6
@ -89,12 +89,11 @@ Ext.define('PBS.window.MaintenanceOptions', {
|
|||||||
let unmounting = options['maintenance-type'] === 'unmount';
|
let unmounting = options['maintenance-type'] === 'unmount';
|
||||||
let defaultType = options['maintenance-type'] === '__default__';
|
let defaultType = options['maintenance-type'] === '__default__';
|
||||||
if (unmounting) {
|
if (unmounting) {
|
||||||
options['maintenance-type'] = '';
|
options['maintenance-type'] = gettext('Unmounting');
|
||||||
}
|
}
|
||||||
|
|
||||||
me.callParent([options]);
|
me.callParent([options]);
|
||||||
|
|
||||||
me.lookupReference('type-field').setDisabled(unmounting);
|
|
||||||
me.lookupReference('message-field').setDisabled(unmounting || defaultType);
|
me.lookupReference('message-field').setDisabled(unmounting || defaultType);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user