make update/disk/network and task grid stateful

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

View File

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

View File

@ -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() {

View File

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

View File

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