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

Hongliang Wang hlwang at linux.vnet.ibm.com
Tue Mar 18 09:18:40 UTC 2014


Call for reviews :-)

On 03/17/2014 06:02 PM, Hongliang Wang wrote:
> "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: [],




More information about the Kimchi-devel mailing list