]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/panel/HealthWidget.js
fix #4455: ui: config panel: add missing onlineHelp mapping for SDN type
[pve-manager.git] / www / manager6 / panel / HealthWidget.js
CommitLineData
046e640c
DC
1Ext.define('PVE.widget.HealthWidget', {
2 extend: 'Ext.Component',
3 alias: 'widget.pveHealthWidget',
4
5 data: {
6 iconCls: PVE.Utils.get_health_icon(undefined, true),
7 text: '',
f6710aac 8 title: '',
046e640c
DC
9 },
10
11 style: {
8058410f 12 'text-align': 'center',
046e640c
DC
13 },
14
15 tpl: [
16 '<h3>{title}</h3>',
17 '<i class="fa fa-5x {iconCls}"></i>',
18 '<br /><br/>',
f6710aac 19 '{text}',
046e640c
DC
20 ],
21
22 updateHealth: function(data) {
23 var me = this;
24 me.update(Ext.apply(me.data, data));
25 },
26
8058410f 27 initComponent: function() {
046e640c
DC
28 var me = this;
29
30 if (me.title) {
31 me.config.data.title = me.title;
32 }
33
34 me.callParent();
f6710aac 35 },
046e640c
DC
36
37});