[Kimchi-devel] [PATCH] [Kimchi] Add loading icon for guests tab

Lucio Correia luciojhc at linux.vnet.ibm.com
Fri Jun 17 16:34:55 UTC 2016


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>
Tested-By:   Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 08-06-2016 19:28, Socorro Stoppler wrote:
> Add 'loading' icon when in Guests tab as it may take a while to get
> the list of guests to appear
>
> Signed-off-by: Socorro Stoppler <socorro at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.guest_main.js | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/ui/js/src/kimchi.guest_main.js b/ui/js/src/kimchi.guest_main.js
> index 2f5e757..fea8054 100644
> --- a/ui/js/src/kimchi.guest_main.js
> +++ b/ui/js/src/kimchi.guest_main.js
> @@ -315,7 +315,7 @@ kimchi.initClone = function() {
>
>
>   kimchi.listVmsAuto = function() {
> -
> +    $('.wok-mask').removeClass('hidden');
>       //Check if the actions button is opened or not,
>       //if opended stop the reload of the itens until closed
>       var $isDropdownOpened = $('[name="guest-actions"] ul.dropdown-menu').is(":visible");
> @@ -418,10 +418,12 @@ kimchi.listVmsAuto = function() {
>                                   });
>                               });
>                           }
> +                        $('.wok-mask').fadeOut(300, function() {});
>                       } else {
>                           $('.grid-control').addClass('hidden');
>                           $('#guestListField').hide();
>                           $('#noGuests').show();
> +                        $('.wok-mask').fadeOut(300, function() {});
>                       }
>                   }
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list