[pve-devel] [PATCH manager 08/10] make lxc/qemu snapshot/network grids stateful
Dominik Csapak
d.csapak at proxmox.com
Tue Nov 8 10:50:49 CET 2016
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/lxc/Network.js | 4 +++-
www/manager6/lxc/SnapshotTree.js | 3 +++
www/manager6/qemu/SnapshotTree.js | 3 +++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 1419a9e..b095005 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -333,6 +333,9 @@ Ext.define('PVE.lxc.NetworkView', {
dataCache: {}, // used to store result of last load
+ stateful: true,
+ stateId: 'grid-lxc-network',
+
load: function() {
var me = this;
@@ -455,7 +458,6 @@ Ext.define('PVE.lxc.NetworkView', {
Ext.apply(me, {
store: store,
selModel: sm,
- stateful: false,
tbar: [
{
text: gettext('Add'),
diff --git a/www/manager6/lxc/SnapshotTree.js b/www/manager6/lxc/SnapshotTree.js
index ab9c81b..8969e97 100644
--- a/www/manager6/lxc/SnapshotTree.js
+++ b/www/manager6/lxc/SnapshotTree.js
@@ -8,6 +8,9 @@ Ext.define('PVE.lxc.SnapshotTree', {
old_digest: 'invalid',
+ stateful: true,
+ stateId: 'grid-lxc-snapshots',
+
sorterFn: function(rec1, rec2) {
var v1 = rec1.data.snaptime;
var v2 = rec2.data.snaptime;
diff --git a/www/manager6/qemu/SnapshotTree.js b/www/manager6/qemu/SnapshotTree.js
index 266ecf4..c35b9c0 100644
--- a/www/manager6/qemu/SnapshotTree.js
+++ b/www/manager6/qemu/SnapshotTree.js
@@ -6,6 +6,9 @@ Ext.define('PVE.qemu.SnapshotTree', {
old_digest: 'invalid',
+ stateful: true,
+ stateId: 'grid-qemu-snapshots',
+
sorterFn: function(rec1, rec2) {
var v1 = rec1.data.snaptime;
var v2 = rec2.data.snaptime;
--
2.1.4
More information about the pve-devel
mailing list