Maor Lipchuk has uploaded a new change for review.

Change subject: webadmin: disable edit of Cinder domain
......................................................................

webadmin: disable edit of Cinder domain

Disable 'Edit' button for Cinder stroage domain

Change-Id: If9f001b2839360ffdd8589998aec48f7679d31b8
Bug-Url: https://bugzilla.redhat.com/1185826
Signed-off-by: Maor Lipchuk <[email protected]>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/25/39225/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
index 2552321..151bab3 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/StorageListModel.java
@@ -937,7 +937,8 @@
     }
 
     private boolean isEditAvailable(StorageDomain storageDomain) {
-        if (storageDomain == null || 
storageDomain.getStorageDomainSharedStatus() == 
StorageDomainSharedStatus.Locked) {
+        if (storageDomain == null || 
storageDomain.getStorageDomainSharedStatus() == 
StorageDomainSharedStatus.Locked ||
+                storageDomain.getStorageType().isCinderDomain()) {
             return false;
         }
 


-- 
To view, visit https://gerrit.ovirt.org/39225
To unsubscribe, visit https://gerrit.ovirt.org/settings

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

Reply via email to