Reviewed-By: Paulo Vital <pvital(a)linux.vnet.ibm.com>
On Tue, 2015-09-01 at 16:50 -0300, Ramon Medeiros wrote:
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");