[pve-devel] [PATCH manager v2] fix ceph tabs switching
Dominik Csapak
d.csapak at proxmox.com
Wed Apr 13 09:12:34 CEST 2016
when switching from one node to another, we stop the wrong store
for the ceph tabs disk/monitor/pools because they have the same id,
so give them different ones
also the same applies for node/Services, fix it there too
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* change the storeid instead of the listener
* fix also for node/services
www/manager6/ceph/Disks.js | 2 +-
www/manager6/ceph/Monitor.js | 2 +-
www/manager6/ceph/Pool.js | 2 +-
www/manager6/node/ServiceView.js | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/www/manager6/ceph/Disks.js b/www/manager6/ceph/Disks.js
index a7526b7..19258fa 100644
--- a/www/manager6/ceph/Disks.js
+++ b/www/manager6/ceph/Disks.js
@@ -61,7 +61,7 @@ Ext.define('PVE.node.CephDiskList', {
var rstore = Ext.create('PVE.data.UpdateStore', {
interval: 3000,
- storeid: 'ceph-disk-list',
+ storeid: 'ceph-disk-list' + nodename,
model: 'ceph-disk-list',
proxy: {
type: 'pve',
diff --git a/www/manager6/ceph/Monitor.js b/www/manager6/ceph/Monitor.js
index 4a184ae..acfd2cc 100644
--- a/www/manager6/ceph/Monitor.js
+++ b/www/manager6/ceph/Monitor.js
@@ -63,7 +63,7 @@ Ext.define('PVE.node.CephMonList', {
var rstore = Ext.create('PVE.data.UpdateStore', {
interval: 3000,
- storeid: 'ceph-mon-list',
+ storeid: 'ceph-mon-list' + nodename,
model: 'ceph-mon-list',
proxy: {
type: 'pve',
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index b1f2140..845e7e5 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -138,7 +138,7 @@ Ext.define('PVE.node.CephPoolList', {
var rstore = Ext.create('PVE.data.UpdateStore', {
interval: 3000,
- storeid: 'ceph-pool-list',
+ storeid: 'ceph-pool-list' + nodename,
model: 'ceph-pool-list',
proxy: {
type: 'pve',
diff --git a/www/manager6/node/ServiceView.js b/www/manager6/node/ServiceView.js
index ab0c1a8..a952aad 100644
--- a/www/manager6/node/ServiceView.js
+++ b/www/manager6/node/ServiceView.js
@@ -13,7 +13,7 @@ Ext.define('PVE.node.ServiceView', {
var rstore = Ext.create('PVE.data.UpdateStore', {
interval: 1000,
- storeid: 'pve-services',
+ storeid: 'pve-services' + nodename,
model: 'pve-services',
proxy: {
type: 'pve',
--
2.1.4
More information about the pve-devel
mailing list