Change in ovirt-engine[master]: webadmin, userportal: Fix null-command grid button visibility

ecohen at redhat.com ecohen at redhat.com
Thu Jan 3 00:11:22 UTC 2013


Einav Cohen has submitted this change and it was merged.

Change subject: webadmin,userportal: Fix null-command grid button visibility
......................................................................


webadmin,userportal: Fix null-command grid button visibility

Grid buttons whose UICommand is null fall back to using empty
(no-op) command singleton object (EMPTY_COMMAND).

Previously, EMPTY_COMMAND was declared with IsAvailable and
IsExecutionAllowed properties both set to 'false'. This meant
that the corresponding UI button was both hidden and disabled.

After this patch, EMPTY_COMMAND leaves IsAvailable property
to its original value ('true'), so that the corresponding UI
button stays visible at all times.

Change-Id: Ic04e99901e59bb4fb85afac1e8db22088ecb3f59
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/widget/action/UiCommandButtonDefinition.java
1 file changed, 0 insertions(+), 1 deletion(-)

Approvals:
  Einav Cohen: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/6116
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic04e99901e59bb4fb85afac1e8db22088ecb3f59
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: Daniel Erez <derez at redhat.com>
Gerrit-Reviewer: Einav Cohen <ecohen at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>



More information about the Engine-commits mailing list