anmolbabu has uploaded a new change for review.

Change subject: webadmin : Retain bricks refresh
......................................................................

webadmin : Retain bricks refresh

On clicking retain brick button from remove-brick status
pop up,after succesfull execution of the command the pop up
was not getting refreshed and hence the stopped at time
was not getting displayed.But,on closing the pop up and
reopening it again,with the new pop up the stopped at time
was getting displayed.
Hence,this patch fixes it by refreshing the pop up after
performing retain-brick option.

Change-Id: Iddc56eec6f9e456c6fdcf6dd45152b58fb0878ed
Signed-off-by: Anmol Babu <anb...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeBrickListModel.java
1 file changed, 1 insertion(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/66/21966/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeBrickListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeBrickListModel.java
index 16007a4..6eac7e8 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeBrickListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/gluster/VolumeBrickListModel.java
@@ -962,10 +962,6 @@
     }
 
     private void showRemoveBricksStatus() {
-        if (getWindow() != null) {
-            return;
-        }
-
         final GlusterVolumeEntity volumeEntity = getVolumeEntity();
         final ArrayList<GlusterBrickEntity> bricks = new 
ArrayList<GlusterBrickEntity>();
         for (GlusterBrickEntity brick : volumeEntity.getBricks()) {
@@ -1120,6 +1116,7 @@
                         localModel.stopProgress();
                         setConfirmWindow(null);
                         if (result.getReturnValue().getSucceeded()) {
+                            showRemoveBricksStatus();
                             disableRemoveBrickStatusPopUpActions();
                         }
                     }


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iddc56eec6f9e456c6fdcf6dd45152b58fb0878ed
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: anmolbabu <anb...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to