[Kimchi-devel] [PATCH 1/5] Fix VM start UI error return message
Rodrigo Trujillo
rodrigo.trujillo at linux.vnet.ibm.com
Mon Feb 24 20:27:11 UTC 2014
This patch fixed the UI error return message and also fix the button
name used in the JS function.
Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
---
ui/js/src/kimchi.guest_main.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
index b5e7af3..56fe065 100644
--- a/ui/js/src/kimchi.guest_main.js
+++ b/ui/js/src/kimchi.guest_main.js
@@ -29,9 +29,9 @@ kimchi.vmstart = function(event) {
kimchi.startVM(vm_id, function(result) {
button.removeClass('loading');
kimchi.listVmsAuto();
- }, function() {
- startButton.removeClass('loading');
- kimchi.message.error(i18n['msg.fail.start']);
+ }, function(err) {
+ button.removeClass('loading');
+ kimchi.message.error(err.responseJSON.reason);
}
);
} else {
--
1.8.5.3
More information about the Kimchi-devel
mailing list