]> git.proxmox.com Git - pmg-gui.git/blob - js/VersionInfo.js
add BETA link to bugtracker
[pmg-gui.git] / js / VersionInfo.js
1 /*global Proxmox*/
2 Ext.define('PMG.view.main.VersionInfo',{
3 extend: 'Ext.Component',
4 xtype: 'versioninfo',
5
6 makeApiCall: true,
7
8 data: {
9 version: false
10 },
11
12 tpl: [
13 'Mail Gateway',
14 '<tpl if="version">',
15 ' {version}-{release}/{repoid}',
16 '</tpl>',
17 ' <a href="https://bugzilla.proxmox.com">BETA</a>'
18 ],
19
20 initComponent: function() {
21 var me = this;
22 me.callParent();
23
24 if (me.makeApiCall) {
25 Proxmox.Utils.API2Request({
26 url: '/version',
27 method: 'GET',
28 success: function(response) {
29 me.update(response.result.data);
30 }
31 });
32 }
33 }
34 });