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

Wen Wang wenwang at linux.vnet.ibm.com
Tue Dec 16 01:57:25 UTC 2014


On 12/15/2014 7:48 PM, Aline Manera wrote:
>
> On 12/15/2014 12:30 AM, Wen Wang wrote:
>> 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 | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/ui/js/src/kimchi.guest_edit_main.js 
>> b/ui/js/src/kimchi.guest_edit_main.js
>> index 4f497e5..5c2def6 100644
>> --- a/ui/js/src/kimchi.guest_edit_main.js
>> +++ b/ui/js/src/kimchi.guest_edit_main.js
>> @@ -564,6 +564,7 @@ kimchi.guest_edit_main = function() {
>>                       $(".icon", item).addClass("hide");
>>                       $("button", 
>> "#form-guest-edit-snapshot").button("enable");
>>                       setCurrentSnapshot(item.prop("id"));
>
>> + kimchi.window.close();
>
> Maybe it is good to call doListVms() before closing the dialog. 
> Otherwise, the dialog will be closed and the VM will be listed in its 
> previous state for a second.
ACK
>
>>                   }, function(data){
>> kimchi.message.error(data.responseJSON.reason);
>>                       $(".icon", item).addClass("hide");
>





More information about the Kimchi-devel mailing list