[pve-devel] [PATCH manager 05/10] make update/disk/network and task grid stateful
Dominik Csapak
d.csapak at proxmox.com
Tue Nov 8 10:50:46 CET 2016
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/node/APT.js | 3 ++-
www/manager6/node/Disks.js | 3 ++-
www/manager6/node/NetworkView.js | 3 ++-
www/manager6/node/Tasks.js | 3 ++-
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/www/manager6/node/APT.js b/www/manager6/node/APT.js
index 7d54d14..41f6d59 100644
--- a/www/manager6/node/APT.js
+++ b/www/manager6/node/APT.js
@@ -148,7 +148,8 @@ Ext.define('PVE.node.APT', {
Ext.apply(me, {
store: store,
- stateful: false,
+ stateful: true,
+ stateId: 'grid-update',
selModel: sm,
viewConfig: {
stripeRows: false,
diff --git a/www/manager6/node/Disks.js b/www/manager6/node/Disks.js
index baf74ae..d963660 100644
--- a/www/manager6/node/Disks.js
+++ b/www/manager6/node/Disks.js
@@ -2,6 +2,8 @@ Ext.define('PVE.node.DiskList', {
extend: 'Ext.grid.GridPanel',
alias: 'widget.pveNodeDiskList',
emptyText: gettext('No Disks found'),
+ stateful: true,
+ stateId: 'grid-node-disks',
columns: [
{
header: gettext('Device'),
@@ -194,7 +196,6 @@ Ext.define('PVE.node.DiskList', {
emptyText: gettext('No Disk found'),
store: store,
selModel: sm,
- stateful: false,
tbar: [ reloadButton, smartButton, initButton ],
listeners: {
itemdblclick: function() {
diff --git a/www/manager6/node/NetworkView.js b/www/manager6/node/NetworkView.js
index 26ae7e9..848aa7b 100644
--- a/www/manager6/node/NetworkView.js
+++ b/www/manager6/node/NetworkView.js
@@ -222,7 +222,8 @@ Ext.define('PVE.node.NetworkView', {
items: [
{
xtype: 'gridpanel',
- stateful: false,
+ stateful: true,
+ stateId: 'grid-node-network',
store: store,
region: 'center',
border: false,
diff --git a/www/manager6/node/Tasks.js b/www/manager6/node/Tasks.js
index 5dc13f6..b7c3134 100644
--- a/www/manager6/node/Tasks.js
+++ b/www/manager6/node/Tasks.js
@@ -2,7 +2,8 @@ Ext.define('PVE.node.Tasks', {
extend: 'Ext.grid.GridPanel',
alias: ['widget.pveNodeTasks'],
- stateful: false,
+ stateful: true,
+ stateId: 'grid-node-tasks',
loadMask: true,
sortableColumns: false,
vmidFilter: 0,
--
2.1.4
More information about the pve-devel
mailing list