Block guest edition when paused.
Signed-off-by: Ramon Medeiros <ramonn(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 fc1b4c1..fdc46cb 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -662,7 +662,7 @@ kimchi.guest_edit_main = function() {
event.preventDefault();
kimchi.window.open("guest-storage-add.html");
});
- if(kimchi.thisVMState === "running") {
+ if ((kimchi.thisVMState === "running") || (kimchi.thisVMState ===
"paused")) {
$("#form-guest-edit-general input").prop("disabled",
true);
} else {
$("#action-button-container").removeClass("hidden");
--
2.1.0