make backup/storage/ha resources/ha groups grid stateful

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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-11-08 10:50:43 +01:00 committed by Dietmar Maurer
parent ac419eb9a2
commit c4bb940580
4 changed files with 11 additions and 4 deletions

View File

@ -382,7 +382,8 @@ Ext.define('PVE.dc.BackupView', {
Ext.apply(me, {
store: store,
selModel: sm,
stateful: false,
stateful: true,
stateId: 'grid-dc-backup',
viewConfig: {
trackOver: false
},

View File

@ -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
},

View File

@ -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
},

View File

@ -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
},