[pve-devel] [PATCH manager 06/10] make ceph panels/grids stateful
Dominik Csapak
d.csapak at proxmox.com
Tue Nov 8 10:50:47 CET 2016
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/ceph/Config.js | 2 +-
www/manager6/ceph/Crush.js | 2 ++
www/manager6/ceph/Monitor.js | 4 +++-
www/manager6/ceph/OSD.js | 3 ++-
www/manager6/ceph/Pool.js | 3 ++-
5 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/www/manager6/ceph/Config.js b/www/manager6/ceph/Config.js
index d89f3fd..009247f 100644
--- a/www/manager6/ceph/Config.js
+++ b/www/manager6/ceph/Config.js
@@ -61,7 +61,7 @@ Ext.define('PVE.node.CephConfigCrush', {
xtype: 'pveNodeCephCrushMap',
region: 'east',
split: true,
- flex: 1
+ width: '50%'
}],
initComponent: function() {
diff --git a/www/manager6/ceph/Crush.js b/www/manager6/ceph/Crush.js
index bd4ad9a..c5e4852 100644
--- a/www/manager6/ceph/Crush.js
+++ b/www/manager6/ceph/Crush.js
@@ -3,6 +3,8 @@ Ext.define('PVE.node.CephCrushMap', {
alias: ['widget.pveNodeCephCrushMap'],
bodyStyle: 'white-space:pre',
bodyPadding: 5,
+ stateful: true,
+ stateId: 'layout-ceph-crush',
scrollable: true,
load: function() {
var me = this;
diff --git a/www/manager6/ceph/Monitor.js b/www/manager6/ceph/Monitor.js
index 4017b4e..2e0a448 100644
--- a/www/manager6/ceph/Monitor.js
+++ b/www/manager6/ceph/Monitor.js
@@ -53,6 +53,9 @@ Ext.define('PVE.node.CephMonList', {
onlineHelp: 'chapter_pveceph',
+ stateful: true,
+ stateId: 'grid-ceph-monitor',
+
initComponent: function() {
var me = this;
@@ -160,7 +163,6 @@ Ext.define('PVE.node.CephMonList', {
Ext.apply(me, {
store: store,
selModel: sm,
- stateful: false,
tbar: [ start_btn, stop_btn, create_btn, remove_btn ],
columns: [
{
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 4244459..588e3d3 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -165,6 +165,8 @@ Ext.define('PVE.node.CephOsdTree', {
extend: 'Ext.tree.Panel',
alias: ['widget.pveNodeCephOsdTree'],
onlineHelp: 'chapter_pveceph',
+ stateful: true,
+ stateId: 'grid-ceph-osd',
columns: [
{
xtype: 'treecolumn',
@@ -437,7 +439,6 @@ Ext.define('PVE.node.CephOsdTree', {
{ type: 'integer', name: 'apply_latency_ms' },
{ type: 'integer', name: 'commit_latency_ms' },
{ type: 'number', name: 'crush_weight' }],
- stateful: false,
selModel: sm,
listeners: {
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index efc648f..57feb55 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -73,7 +73,8 @@ Ext.define('PVE.node.CephPoolList', {
alias: ['widget.pveNodeCephPoolList'],
onlineHelp: 'chapter_pveceph',
- stateful: false,
+ stateful: true,
+ stateId: 'grid-ceph-pools',
bufferedRenderer: false,
features: [ { ftype: 'summary'} ],
columns: [
--
2.1.4
More information about the pve-devel
mailing list