[pbs-devel] [PATCH proxmox-backup v8 23/23] ui: support create removable datastore through directory creation
Hannes Laimer
h.laimer at proxmox.com
Fri Apr 19 17:56:06 CEST 2024
Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
www/window/CreateDirectory.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/www/window/CreateDirectory.js b/www/window/CreateDirectory.js
index 6aabe21a..38d6979d 100644
--- a/www/window/CreateDirectory.js
+++ b/www/window/CreateDirectory.js
@@ -43,6 +43,20 @@ Ext.define('PBS.window.CreateDirectory', {
name: 'add-datastore',
fieldLabel: gettext('Add as Datastore'),
value: '1',
+ listeners: {
+ change(field, newValue, _oldValue) {
+ let form = field.up('form');
+ let rmBox = form.down('[name=removable-datastore]');
+
+ rmBox.setDisabled(!newValue);
+ rmBox.setValue(false);
+ },
+ },
+ },
+ {
+ xtype: 'proxmoxcheckbox',
+ name: 'removable-datastore',
+ fieldLabel: gettext('is removable'),
},
],
});
--
2.39.2
More information about the pbs-devel
mailing list