use notesview declaratively in storage summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-02-23 10:32:00 +01:00 committed by Thomas Lamprecht
parent 89421b28a7
commit f2d03c7e51

View File

@ -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'),