[pve-devel] [PATCH manager v2 6/7] make lxc/qemu use new statusview
Dominik Csapak
d.csapak at proxmox.com
Fri Aug 19 10:47:52 CEST 2016
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/lxc/Summary.js | 36 ++++++++++++++++++++++--------------
www/manager6/qemu/Summary.js | 26 +++++++++++++++++---------
2 files changed, 39 insertions(+), 23 deletions(-)
diff --git a/www/manager6/lxc/Summary.js b/www/manager6/lxc/Summary.js
index bf491ff..f93f5f7 100644
--- a/www/manager6/lxc/Summary.js
+++ b/www/manager6/lxc/Summary.js
@@ -29,13 +29,6 @@ Ext.define('PVE.lxc.Summary', {
var template = !!me.pveSelNode.data.template;
var rstore = me.statusStore;
- var statusview = Ext.create('PVE.lxc.StatusView', {
- title: gettext('Status'),
- pveSelNode: me.pveSelNode,
- width: template ? 800 : 400,
- rstore: rstore
- });
-
var notesview = Ext.create('PVE.panel.NotesView', {
pveSelNode: me.pveSelNode,
padding: template ? '10 0 0 0' : '0 0 0 10',
@@ -55,13 +48,20 @@ Ext.define('PVE.lxc.Summary', {
padding: '0 10 10 0'
},
items: [{
- width: 800,
- layout: {
- type: 'vbox',
- align: 'stretch'
+ width: 800,
+ layout: {
+ type: 'vbox',
+ align: 'stretch'
+ },
+ border: false,
+ items: [
+ {
+ xtype: 'pveTemplateStatusView',
+ pveSelNode: me.pveSelNode,
+ rstore: rstore
},
- border: false,
- items: [ statusview, notesview ]
+ notesview
+ ]
}]
}]
},
@@ -96,7 +96,15 @@ Ext.define('PVE.lxc.Summary', {
align: 'stretch'
},
border: false,
- items: [ statusview, notesview ]
+ items: [
+ {
+ xtype: 'pveGuestStatusView',
+ pveSelNode: me.pveSelNode,
+ width: 400,
+ rstore: rstore
+ },
+ notesview
+ ]
},
{
xtype: 'pveRRDChart',
diff --git a/www/manager6/qemu/Summary.js b/www/manager6/qemu/Summary.js
index 1a1b85d..64164fc 100644
--- a/www/manager6/qemu/Summary.js
+++ b/www/manager6/qemu/Summary.js
@@ -29,13 +29,6 @@ Ext.define('PVE.qemu.Summary', {
var template = !!me.pveSelNode.data.template;
var rstore = me.statusStore;
- var statusview = Ext.create('PVE.qemu.StatusView', {
- title: gettext('Status'),
- pveSelNode: me.pveSelNode,
- width: template ? 800 : 400,
- rstore: rstore
- });
-
var notesview = Ext.create('PVE.panel.NotesView', {
pveSelNode: me.pveSelNode,
padding: template? '10 0 0 0' : '0 0 0 10',
@@ -63,7 +56,14 @@ Ext.define('PVE.qemu.Summary', {
align: 'stretch'
},
border: false,
- items: [ statusview, notesview ]
+ items: [
+ {
+ xtype: 'pveTemplateStatusView',
+ pveSelNode: me.pveSelNode,
+ rstore: rstore
+ },
+ notesview
+ ]
}]
}
]
@@ -100,7 +100,15 @@ Ext.define('PVE.qemu.Summary', {
align: 'stretch'
},
border: false,
- items: [ statusview, notesview ]
+ items: [
+ {
+ xtype: 'pveGuestStatusView',
+ pveSelNode: me.pveSelNode,
+ width: 400,
+ rstore: rstore
+ },
+ notesview
+ ]
},
{
xtype: 'pveRRDChart',
--
2.1.4
More information about the pve-devel
mailing list