]>
git.proxmox.com Git - pmg-gui.git/blob - js/dashboard/SubscriptionInfo.js
1 Ext
.define('PMG.dashboard.SubscriptionInfo', {
2 extend
: 'Ext.panel.Panel',
3 xtype
: 'pmgSubscriptionInfo',
6 icon
: 'question-circle',
7 message
: gettext('Unknown'),
14 setSubStatus: function(status
) {
20 data
.icon
= 'check green';
21 data
.message
= gettext('Your subscription status is valid.');
24 data
.icon
= 'exclamation-triangle yellow';
25 data
.message
= gettext('Warning: Your subscription levels are not the same.');
28 data
.icon
= 'times-circle red';
29 data
.message
= gettext('You have at least one node without subscription.');
32 throw 'invalid subscription status';
37 '<table style="height: 100%;" class="dash">',
38 '<tr><td class="center">',
39 '<i class="fa fa-3x fa-{icon}"></i>',
40 '</td><td class="center">{message}</td></tr>',
48 var mainview
= this.component
.up('mainview');
49 mainview
.getController().redirectTo('pmgSubscription');