ALT: remove subscruption from dashboard

This commit is contained in:
Andrew A. Vasilyev 2024-03-26 18:49:35 +03:00
parent 7fa39d064e
commit ffcab85471

View File

@ -59,17 +59,6 @@ Ext.define('PBS.Dashboard', {
}
},
updateSubscription: function(store, records, success) {
if (!success) { return; }
let me = this;
let view = me.getView();
let status = records[0].data.status || 'unknown';
// 2 = all good, 1 = different levels, 0 = none
let subscriptionActive = status.toLowerCase() === 'active';
let subStatus = status.toLowerCase() === 'active' ? 2 : 0;
me.lookup('subscription').setSubStatus(subStatus);
},
updateTasks: function(store, records, success) {
if (!success) return;
let me = this;
@ -229,13 +218,6 @@ Ext.define('PBS.Dashboard', {
height: 250,
reference: 'tasksummary',
},
{
iconCls: 'fa fa-ticket',
title: 'Subscription',
height: 250,
reference: 'subscription',
xtype: 'pbsSubscriptionInfo',
},
],
});