mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-05 16:18:25 +00:00
ui: disk storage selector: never send format when hideFormat is true
The backend will pick an appropriate format when nothing is specified. The comment made it sound like 'raw' would be sent, but that didn't actually happen on file-based storages, and now no format is sent, so adapt the comment too. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
716c30438b
commit
faef846c22
@ -28,7 +28,7 @@ Ext.define('PVE.form.DiskStorageSelector', {
|
||||
// hides the size field (e.g, for the efi disk dialog)
|
||||
hideSize: false,
|
||||
|
||||
// hides the format field (e.g. for TPM state), always assumes 'raw'
|
||||
// hides the format field (e.g. for TPM state)
|
||||
hideFormat: false,
|
||||
|
||||
// sets the initial size value
|
||||
@ -66,7 +66,7 @@ Ext.define('PVE.form.DiskStorageSelector', {
|
||||
|
||||
var select = !!rec.data.select_existing && !me.hideSelection;
|
||||
|
||||
formatsel.setDisabled(!selectformat);
|
||||
formatsel.setDisabled(!selectformat || me.hideFormat);
|
||||
formatsel.setValue(selectformat ? 'qcow2' : 'raw');
|
||||
|
||||
hdfilesel.setDisabled(!select);
|
||||
|
Loading…
Reference in New Issue
Block a user