all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH v2 manager] ui: dc: subscription: fix subscription check
@ 2022-10-19 10:34 Aaron Lauterer
  2022-10-19 12:05 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Lauterer @ 2022-10-19 10:34 UTC (permalink / raw)
  To: pve-devel

With the change to the rust backend for the subscription check, the
return value changed as well.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
changes: use toLowerCase() and safeguard with ?

 www/manager6/dc/Support.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/dc/Support.js b/www/manager6/dc/Support.js
index 1b51e5ba..80f4d848 100644
--- a/www/manager6/dc/Support.js
+++ b/www/manager6/dc/Support.js
@@ -61,7 +61,7 @@ Ext.define('PVE.dc.Support', {
 		},
 		success: function(response, opts) {
 		    let data = response.result.data;
-		    if (data.status === 'Active') {
+		    if (data?.status.toLowerCase() === 'active') {
 			if (data.level === 'c') {
 			    me.updateCommunity(data);
 			} else {
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-19 12:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 10:34 [pve-devel] [PATCH v2 manager] ui: dc: subscription: fix subscription check Aaron Lauterer
2022-10-19 12:05 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal