[pve-devel] [PATCH manager 02/10] make backup/storage/ha resources/ha groups grid stateful

Dominik Csapak d.csapak at proxmox.com
Tue Nov 8 10:50:43 CET 2016


so that the column changes are saved in the browsers local storage

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/Backup.js      | 3 ++-
 www/manager6/dc/StorageView.js | 4 +++-
 www/manager6/ha/Groups.js      | 4 +++-
 www/manager6/ha/Resources.js   | 4 +++-
 4 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 54eca4b..14ceabf 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -389,7 +389,8 @@ Ext.define('PVE.dc.BackupView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
+	    stateful: true,
+	    stateId: 'grid-dc-backup',
 	    viewConfig: {
 		trackOver: false
 	    },
diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js
index 39b9233..2940a98 100644
--- a/www/manager6/dc/StorageView.js
+++ b/www/manager6/dc/StorageView.js
@@ -6,6 +6,9 @@ Ext.define('PVE.dc.StorageView', {
 
     onlineHelp: 'chapter_storage',
 
+    stateful: true,
+    stateId: 'grid-dc-storage',
+
     initComponent : function() {
 	var me = this;
 
@@ -99,7 +102,6 @@ Ext.define('PVE.dc.StorageView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    viewConfig: {
 		trackOver: false
 	    },
diff --git a/www/manager6/ha/Groups.js b/www/manager6/ha/Groups.js
index c218616..c8c5a42 100644
--- a/www/manager6/ha/Groups.js
+++ b/www/manager6/ha/Groups.js
@@ -4,6 +4,9 @@ Ext.define('PVE.ha.GroupsView', {
 
     onlineHelp: 'ha_manager_groups',
 
+    stateful: true,
+    stateId: 'grid-ha-groups',
+
     initComponent : function() {
 	var me = this;
 
@@ -64,7 +67,6 @@ Ext.define('PVE.ha.GroupsView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    viewConfig: {
 		trackOver: false
 	    },
diff --git a/www/manager6/ha/Resources.js b/www/manager6/ha/Resources.js
index df26788..999cf3d 100644
--- a/www/manager6/ha/Resources.js
+++ b/www/manager6/ha/Resources.js
@@ -4,6 +4,9 @@ Ext.define('PVE.ha.ResourcesView', {
 
     onlineHelp: 'ha_manager_resources',
 
+    stateful: true,
+    stateId: 'grid-ha-resources',
+
     initComponent : function() {
 	var me = this;
 
@@ -92,7 +95,6 @@ Ext.define('PVE.ha.ResourcesView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    viewConfig: {
 		trackOver: false
 	    },
-- 
2.1.4





More information about the pve-devel mailing list