make subscription status check compare lower case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-29 14:18:42 +01:00
parent fa94468a0f
commit 57ba4cdcb3

View File

@ -461,7 +461,7 @@ utilities: {
success: function(response, opts) { success: function(response, opts) {
let res = response.result; let res = response.result;
if (res === null || res === undefined || !res || res if (res === null || res === undefined || !res || res
.data.status !== 'Active') { .data.status.toLowerCase() !== 'active') {
Ext.Msg.show({ Ext.Msg.show({
title: gettext('No valid subscription'), title: gettext('No valid subscription'),
icon: Ext.Msg.WARNING, icon: Ext.Msg.WARNING,