mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-16 00:31:55 +00:00
fix #2223: fix set_button_status isCDRom
value is not always a string (depending on the value that changed), so we have to convert it to a string to have a 'match' function Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> (cherry picked from commit 177b83abb390667b22423a3dd486479a66ecc69d) Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f6632d26b2
commit
138507bd3b
@ -575,7 +575,7 @@ Ext.define('PVE.qemu.HardwareView', {
|
||||
var rowdef = rows[key];
|
||||
|
||||
var pending = rec.data['delete'] || me.hasPendingChanges(key);
|
||||
var isCDRom = (value && !!value.match(/media=cdrom/));
|
||||
var isCDRom = (value && !!value.toString().match(/media=cdrom/));
|
||||
var isUnusedDisk = key.match(/^unused\d+/);
|
||||
var isUsedDisk = !isUnusedDisk &&
|
||||
rowdef.tdCls == 'pve-itype-icon-storage' &&
|
||||
|
Loading…
Reference in New Issue
Block a user