]> git.proxmox.com Git - pmg-gui.git/blob - js/VersionInfo.js
mail-proxy-relaying: add help to Default Relay
[pmg-gui.git] / js / VersionInfo.js
1 Ext.define('PMG.view.main.VersionInfo', {
2 extend: 'Ext.Component',
3 xtype: 'versioninfo',
4
5 makeApiCall: true,
6
7 data: {
8 version: false,
9 },
10
11 style: {
12 'font-size': '14px',
13 'line-height': '18px',
14 },
15
16 tpl: [
17 'Mail Gateway',
18 '<tpl if="version">',
19 ' {version}',
20 '</tpl>',
21 ],
22
23 initComponent: function() {
24 var me = this;
25 me.callParent();
26
27 if (me.makeApiCall) {
28 Proxmox.Utils.API2Request({
29 url: '/version',
30 method: 'GET',
31 success: function(response) {
32 me.update(response.result.data);
33 },
34 });
35 }
36 },
37 });