[Kimchi-devel] [PATCH] [UI] Software Update: Enable "Update All" Button when Task Fails

Hongliang Wang hlwang at linux.vnet.ibm.com
Mon Mar 17 10:02:28 UTC 2014


"Update All" Button stays disabled even when the updating task fails.
Fix it in this patch.

Signed-off-by: Hongliang Wang <hlwang at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.host.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.host.js b/ui/js/src/kimchi.host.js
index f9696ea..91ac894 100644
--- a/ui/js/src/kimchi.host.js
+++ b/ui/js/src/kimchi.host.js
@@ -57,7 +57,9 @@ kimchi.host_main = function() {
                         kimchi.topic('kimchi/softwareUpdated').publish({
                             result: result
                         });
-                    }, function() {}, reloadProgressArea);
+                    }, function(result) {
+                        $(updateButton).text(i18n['KCHUPD6006M']).prop('disabled', false);
+                    }, reloadProgressArea);
                 }
             }],
             frozenFields: [],
-- 
1.8.1.4




More information about the Kimchi-devel mailing list