[pve-devel] [PATCH manager v2 6/8] use notesview declaratively in storage summary

Dominik Csapak d.csapak at proxmox.com
Fri Feb 23 10:32:00 CET 2018


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/storage/Summary.js | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/www/manager6/storage/Summary.js b/www/manager6/storage/Summary.js
index 4abde547..5867c7f3 100644
--- a/www/manager6/storage/Summary.js
+++ b/www/manager6/storage/Summary.js
@@ -34,12 +34,6 @@ Ext.define('PVE.storage.Summary', {
 	    interval: 1000
 	});
 
-	var statusview = Ext.create('PVE.storage.StatusView', {
-	    pveSelNode: me.pveSelNode,
-	    rstore: rstore,
-	    style: {'padding-top':'0px'}
-	});
-
 	var rrdstore = Ext.create('Proxmox.data.RRDStore', {
 	    rrdurl:  "/api2/json/nodes/" + nodename + "/storage/" + storage + "/rrddata",
 	    model: 'pve-rrd-storage'
@@ -47,7 +41,11 @@ Ext.define('PVE.storage.Summary', {
 
 	Ext.apply(me, {
 	    items: [
-		statusview,
+		{
+		    xtype: 'pveStorageStatusView',
+		    pveSelNode: me.pveSelNode,
+		    rstore: rstore
+		},
 		{
 		    xtype: 'proxmoxRRDChart',
 		    title: gettext('Usage'),
-- 
2.11.0





More information about the pve-devel mailing list