- Such devices are still being listed but the action + button is grayed
out and disabled. However it's enabled again if the system is
powered off.
Signed-off-by: Jose Ricardo Ziviani <joserz(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_edit_main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index 94b521e..8c26f55 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -487,7 +487,7 @@ kimchi.guest_edit_main = function() {
$('.body', '#form-guest-edit-pci').append(itemNode);
pciEnabled || $('button', itemNode).remove();
$('button i', itemNode).addClass(iconClass);
- if (kimchi.thisVMState === "running" &&
arrPCIDevices[i].multifunction) {
+ if (kimchi.thisVMState === "running" &&
(arrPCIDevices[i].multifunction || arrPCIDevices[i].vga3d)) {
$('button', itemNode).prop("disabled", true);
}
$('button', itemNode).on('click', function(event) {
--
1.9.1