ofri masad has uploaded a new change for review.

Change subject: webadmin: Fix "no quota in DC" message logic
......................................................................

webadmin: Fix "no quota in DC" message logic

The message which alerts the user about "no quotas in the DC" should
appear when moving between quota enforcement states:
  Disabled >> Enforced
  Audit >> Enforce
The message should not be presented when moving between
  Disabled >> Audit

Change-Id: If5774a42e890a93bc5d8779923cf857ae861f495
Bug-Url: https://bugzilla.redhat.com/974172
Signed-off-by: Ofri Masad <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/DataCenterListModel.java
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/12/17012/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/DataCenterListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/DataCenterListModel.java
index e6cd62c..cd50e1a 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/DataCenterListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/datacenters/DataCenterListModel.java
@@ -625,8 +625,8 @@
             confirmModel.getCommands().add(tempVar2);
         }
         else if (getSelectedItem() != null
-                && ((StoragePool) getSelectedItem()).getQuotaEnforcementType() 
== QuotaEnforcementTypeEnum.DISABLED
-                && model.getQuotaEnforceTypeListModel().getSelectedItem() != 
QuotaEnforcementTypeEnum.DISABLED)
+                && ((StoragePool) getSelectedItem()).getQuotaEnforcementType() 
!= QuotaEnforcementTypeEnum.HARD_ENFORCEMENT
+                && model.getQuotaEnforceTypeListModel().getSelectedItem() == 
QuotaEnforcementTypeEnum.HARD_ENFORCEMENT)
         {
             checkForQuotaInDC(model.getEntity(), this);
         }


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

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

Reply via email to