[pve-devel] [PATCH manager] fix wrong message after subscription upload

Dominik Csapak d.csapak at proxmox.com
Thu May 19 11:19:04 CEST 2016


we use getObjectValue('message') which
reads from the store and not the realstore,
so the "no subscription" message is cached there
and shown directly after uploading

instead use the rstore to retrieve the message value

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/node/Subscription.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/manager6/node/Subscription.js b/www/manager6/node/Subscription.js
index 8309693..93aaa3d 100644
--- a/www/manager6/node/Subscription.js
+++ b/www/manager6/node/Subscription.js
@@ -108,10 +108,10 @@ Ext.define('PVE.node.Subscription', {
 
 	var render_status = function(value) {
 
-	    var message = me.getObjectValue('message');
+	    var rec = me.rstore.getById('message');
 
-	    if (message) {
-		return value + ": " + message;
+	    if (rec && rec.data && rec.data.value) {
+		return value + ": " + rec.data.value;
 	    }
 	    return value;
 	};
-- 
2.1.4





More information about the pve-devel mailing list