[Kimchi-devel] [PATCH] [Kimchi] Fix issue #1022: Remove 'Clone' option for running guests
Paulo Ricardo Paz Vital
pvital at linux.vnet.ibm.com
Tue Sep 27 20:15:00 UTC 2016
Reviewed-By: Paulo Vital <pvital at linux.vnet.ibm.com>
On Tue, 2016-09-27 at 15:17 -0300, Aline Manera wrote:
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
> ui/js/src/kimchi.guest_main.js | 1 -
> ui/pages/guest.html.tmpl | 3 +--
> 2 files changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/ui/js/src/kimchi.guest_main.js
> b/ui/js/src/kimchi.guest_main.js
> index 34217e4..f734837 100644
> --- a/ui/js/src/kimchi.guest_main.js
> +++ b/ui/js/src/kimchi.guest_main.js
> @@ -640,7 +640,6 @@ kimchi.createGuestLi = function(vmObject,
> prevScreenImage, openMenu) {
> //Setup the VM Actions
> var guestActions = result.find("div[name=guest-actions]");
> guestActions.find(".shutoff-disabled").prop("disabled",
> !vmRunningBool);
> - guestActions.find(".running-disabled").prop("disabled",
> vmRunningBool);
> guestActions.find(".non-persistent-
> disabled").prop("disabled", !vmPersistent);
> guestActions.find(".reset-disabled").prop("disabled",
> vmPoweredOffBool || !vmPersistent);
> guestActions.find(".pause-disabled").prop("disabled",
> vmPoweredOffBool || !vmPersistent);
> diff --git a/ui/pages/guest.html.tmpl b/ui/pages/guest.html.tmpl
> index 389ba9d..cc09aa0 100644
> --- a/ui/pages/guest.html.tmpl
> +++ b/ui/pages/guest.html.tmpl
> @@ -61,9 +61,8 @@
> <ul class="dropdown-menu" role="menu">
> <li role="presentation"><a
> nwAct="connect-vnc" class='shutoff-disabled' name="vm-console"
> href="#"><i class="fa fa-list-alt"></i>$_("View Console")</a></li>
> <li role="presentation"><a
> nwAct="connect-serial-console" class='shutoff-hidden' name="vm-
> serial-console" href="#"><i class="fa fa-list-alt"></i>$_("View
> Serial")</a></li>
> - <!-- <li role="presentation"><a
> nwAct="view-vnc" class='shutoff-disabled' name="vm-view-vnc"
> href="#"><i class="fa fa-eye"></i>$_("View VNC Console")</a></li> -->
> <li role="presentation"><a nwAct="edit"
> name="vm-edit" href="#"><i class="fa fa-
> pencil"></i>$_("Edit")</a></li>
> - <li role="presentation"><a nwAct="clone"
> class='running-disabled' name="vm-clone" href="#"><i class="fa fa-
> copy"></i>$_("Clone")</a></li>
> + <li role="presentation"><a nwAct="clone"
> class='running-hidden' name="vm-clone" href="#"><i class="fa fa-
> copy"></i>$_("Clone")</a></li>
> <li role="presentation"><a
> nwAct="migrate" name="vm-migrate" href="#"><i class="fa fa-
> exchange"></i>$_("Migrate")</a></li>
> <li role="presentation"><a nwAct="reset"
> class='shutoff-hidden non-persistent-disabled' name="vm-reset"
> href="#"><i class="fa fa-refresh"></i>$_("Reset")</a></li>
> <li role="presentation"><a nwAct="pause"
> class='pause-hidden non-persistent-disabled' name="vm-pause"
> href="#"><i class="fa fa-pause"></i>$_("Pause")</a></li>
More information about the Kimchi-devel
mailing list