mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-20 10:11:54 +00:00

This adds a dropdown box for iSCSI, LVM, LVMThin & ZFS storage options where a cluster node needs to be chosen. As default the current node is selected. It restricts the the storage to be only availabe on the selected node. Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
17 lines
347 B
JavaScript
17 lines
347 B
JavaScript
Ext.define('PVE.form.ComboBoxSetStoreNode', {
|
|
extend: 'Ext.form.field.ComboBox',
|
|
config: {
|
|
apiBaseUrl: '/api2/json/nodes/',
|
|
apiSuffix: '',
|
|
},
|
|
|
|
setNodeName: function(value) {
|
|
let me = this;
|
|
value ||= Proxmox.NodeName;
|
|
|
|
me.getStore().getProxy().setUrl(`${me.apiBaseUrl}${value}${me.apiSuffix}`);
|
|
this.clearValue();
|
|
},
|
|
|
|
});
|