[Kimchi-devel] [PATCH V3] Bugfix#527 Reverting a snapshot doesn't change initial state of "Edit Guest"

Daniel Henrique Barboza danielhb at linux.vnet.ibm.com
Tue Dec 16 12:01:29 UTC 2014


Reviewed-by: Daniel Barboza <danielhb at linux.vnet.ibm.com>

On 12/16/2014 12:02 AM, Wen Wang wrote:
> V2 -> V3:
> List VMs before closing the dialogue so that VM current status match the
> reverted status.
>
> Close dialogue when reverting a VM finished.
>
> Signed-off-by: Wen Wang <wenwang at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.guest_edit_main.js | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
> index 4f497e5..9c088aa 100644
> --- a/ui/js/src/kimchi.guest_edit_main.js
> +++ b/ui/js/src/kimchi.guest_edit_main.js
> @@ -564,6 +564,8 @@ kimchi.guest_edit_main = function() {
>                       $(".icon", item).addClass("hide");
>                       $("button", "#form-guest-edit-snapshot").button("enable");
>                       setCurrentSnapshot(item.prop("id"));
> +                    kimchi.listVmsAuto();
> +                    kimchi.window.close();
>                   }, function(data){
>                       kimchi.message.error(data.responseJSON.reason);
>                       $(".icon", item).addClass("hide");




More information about the Kimchi-devel mailing list