[pve-devel] [PATCH manager 04/10] make user/acl/auth grids stateful

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


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/ACLView.js   | 4 +++-
 www/manager6/dc/AuthView.js  | 4 +++-
 www/manager6/dc/GroupView.js | 4 +++-
 www/manager6/dc/PoolView.js  | 4 +++-
 www/manager6/dc/RoleView.js  | 4 +++-
 www/manager6/dc/UserView.js  | 4 +++-
 6 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/www/manager6/dc/ACLView.js b/www/manager6/dc/ACLView.js
index 9ec9f68..561f4c4 100644
--- a/www/manager6/dc/ACLView.js
+++ b/www/manager6/dc/ACLView.js
@@ -75,6 +75,9 @@ Ext.define('PVE.dc.ACLView', {
 
     onlineHelp: 'chapter_user_management',
 
+    stateful: true,
+    stateId: 'grid-acls',
+
     // use fixed path
     path: undefined,
 
@@ -187,7 +190,6 @@ Ext.define('PVE.dc.ACLView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    tbar: [
 		{
 		    text: gettext('Add'),
diff --git a/www/manager6/dc/AuthView.js b/www/manager6/dc/AuthView.js
index 13c033c..5c47f44 100644
--- a/www/manager6/dc/AuthView.js
+++ b/www/manager6/dc/AuthView.js
@@ -5,6 +5,9 @@ Ext.define('PVE.dc.AuthView', {
 
     onlineHelp: 'pveum_authentication_realms',
 
+    stateful: true,
+    stateId: 'grid-authrealms',
+
     initComponent : function() {
 	var me = this;
 
@@ -105,7 +108,6 @@ Ext.define('PVE.dc.AuthView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
             tbar: tbar,
 	    viewConfig: {
 		trackOver: false
diff --git a/www/manager6/dc/GroupView.js b/www/manager6/dc/GroupView.js
index b0f71b1..31fc286 100644
--- a/www/manager6/dc/GroupView.js
+++ b/www/manager6/dc/GroupView.js
@@ -5,6 +5,9 @@ Ext.define('PVE.dc.GroupView', {
 
     onlineHelp: 'pveum_groups',
 
+    stateful: true,
+    stateId: 'grid-groups',
+
     initComponent : function() {
 	var me = this;
 
@@ -82,7 +85,6 @@ Ext.define('PVE.dc.GroupView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    tbar: tbar,
 	    viewConfig: {
 		trackOver: false
diff --git a/www/manager6/dc/PoolView.js b/www/manager6/dc/PoolView.js
index 2eaec10..8b44d28 100644
--- a/www/manager6/dc/PoolView.js
+++ b/www/manager6/dc/PoolView.js
@@ -5,6 +5,9 @@ Ext.define('PVE.dc.PoolView', {
 
     onlineHelp: 'pveum_pools',
 
+    stateful: true,
+    stateId: 'grid-pools',
+
     initComponent : function() {
 	var me = this;
 
@@ -82,7 +85,6 @@ Ext.define('PVE.dc.PoolView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    tbar: tbar,
 	    viewConfig: {
 		trackOver: false
diff --git a/www/manager6/dc/RoleView.js b/www/manager6/dc/RoleView.js
index 78968e3..63a599f 100644
--- a/www/manager6/dc/RoleView.js
+++ b/www/manager6/dc/RoleView.js
@@ -5,6 +5,9 @@ Ext.define('PVE.dc.RoleView', {
 
     onlineHelp: 'pveum_roles',
 
+    stateful: true,
+    stateId: 'grid-roles',
+
     initComponent : function() {
 	var me = this;
 
@@ -32,7 +35,6 @@ Ext.define('PVE.dc.RoleView', {
 
 	Ext.apply(me, {
 	    store: store,
-	    stateful: false,
 
 	    viewConfig: {
 		trackOver: false
diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
index 0aa8828..4d2238e 100644
--- a/www/manager6/dc/UserView.js
+++ b/www/manager6/dc/UserView.js
@@ -58,6 +58,9 @@ Ext.define('PVE.dc.UserView', {
 
     onlineHelp: 'pveum_users',
 
+    stateful: true,
+    stateId: 'grid-users',
+
     initComponent : function() {
 	var me = this;
 
@@ -177,7 +180,6 @@ Ext.define('PVE.dc.UserView', {
 	Ext.apply(me, {
 	    store: store,
 	    selModel: sm,
-	    stateful: false,
 	    tbar: tbar,
 	    viewConfig: {
 		trackOver: false
-- 
2.1.4





More information about the pve-devel mailing list