anmolbabu has uploaded a new change for review.

Change subject: webadmin : add pdf export button to volume profile
......................................................................

webadmin : add pdf export button to volume profile

Change-Id: I506efc1c626059811c8e69d8232145430b3ec963
Signed-off-by: Anmol Babu <anb...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java
M 
frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/UIConstants.java
2 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/85/28085/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java
index 9b6e883..1f17378 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/volumes/VolumeListModel.java
@@ -541,6 +541,12 @@
             }
             getConfirmWindow().stopProgress();
             setConfirmWindow(null);
+        } else if(command.getName().equalsIgnoreCase("profilingNotStarted")) 
{//$NON-NLS-1$
+            if(getConfirmWindow() == null) {
+                return;
+            }
+            getConfirmWindow().stopProgress();
+            setConfirmWindow(null);
         }
     }
 
@@ -741,6 +747,10 @@
             setConfirmWindow(null);
         }
         if(getWindow() == null) {
+            UICommand exportToPdf = new UICommand("export_to_pdf", 
profileStatsModel);//$NON-NLS-1$
+            exportToPdf.setIsDefault(true);
+            
exportToPdf.setTitle(ConstantsManager.getInstance().getConstants().exportToPdf());
+            profileStatsModel.getCommands().add(exportToPdf);
             setWindow(profileStatsModel);
             setHelpTag(HelpTag.volume_profile_statistics);
             setHashName("volume_profile_statistics"); //$NON-NLS-1$
diff --git 
a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/UIConstants.java
 
b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/UIConstants.java
index 0230fdf..d4191bf 100644
--- 
a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/UIConstants.java
+++ 
b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/UIConstants.java
@@ -2283,5 +2283,8 @@
 
     @DefaultStringValue("The following VMs are attached to the instance type")
     String vmsAttachedToInstanceTypeWarningMessage();
+
+    @DefaultStringValue("Export To PDF")
+    String exportToPdf();
 }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I506efc1c626059811c8e69d8232145430b3ec963
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