Noam Slomianko has uploaded a new change for review.

Change subject: webadmin: add isCancel to command in quota
......................................................................

webadmin: add isCancel to command in quota

In quota model and quota list model the Cancel command was not set
with the isCancel attribute resaulting in problems when trying to
use the ESC key to clsoe it.

Change-Id: Ifb28b8c52b958f4d7ee62009e0d5114bf5268f50
Bug-Url: https://bugzilla.redhat.com/915759
Signed-off-by: Noam Slomianko <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaListModel.java
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaModel.java
2 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/82/12582/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaListModel.java
index 6986968..c5e76bd 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaListModel.java
@@ -255,6 +255,7 @@
         qModel.getCommands().add(command);
         command = new UICommand("Cancel", this); //$NON-NLS-1$
         
command.setTitle(ConstantsManager.getInstance().getConstants().cancel());
+        command.setIsCancel(true);
         qModel.getCommands().add(command);
     }
 
@@ -370,6 +371,7 @@
         qModel.getCommands().add(command);
         command = new UICommand("Cancel", this); //$NON-NLS-1$
         
command.setTitle(ConstantsManager.getInstance().getConstants().cancel());
+        command.setIsCancel(true);
         qModel.getCommands().add(command);
 
         AsyncQuery asyncQuery = new AsyncQuery();
diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaModel.java
index 14d9b84..a9000fb 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/quota/QuotaModel.java
@@ -296,6 +296,7 @@
         model.getCommands().add(command);
         command = new UICommand("Cancel", this); //$NON-NLS-1$
         
command.setTitle(ConstantsManager.getInstance().getConstants().cancel());
+        command.setIsCancel(true);
         model.getCommands().add(command);
     }
 
@@ -320,6 +321,7 @@
         model.getCommands().add(command);
         command = new UICommand("Cancel", this); //$NON-NLS-1$
         
command.setTitle(ConstantsManager.getInstance().getConstants().cancel());
+        command.setIsCancel(true);
         model.getCommands().add(command);
     }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb28b8c52b958f4d7ee62009e0d5114bf5268f50
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to