]> git.proxmox.com Git - proxmox-backup.git/blame - www/VersionInfo.js
tools/logrotate: fix compression logic
[proxmox-backup.git] / www / VersionInfo.js
CommitLineData
8acd4d9a 1Ext.define('PBS.view.main.VersionInfo', {
e4dc0a14
DM
2 extend: 'Ext.Component',
3 xtype: 'versioninfo',
4
5 makeApiCall: true,
6
7 data: {
8acd4d9a 8 version: false,
e4dc0a14
DM
9 },
10
11 tpl: [
12 'Backup Server',
13 '<tpl if="version">',
14 ' {version}-{release}',
8acd4d9a 15 '</tpl>',
e4dc0a14
DM
16 ],
17
18 initComponent: function() {
19 var me = this;
20 me.callParent();
21
22 if (me.makeApiCall) {
576e3bf2 23 Proxmox.Utils.API2Request({
e4dc0a14
DM
24 url: '/version',
25 method: 'GET',
26 success: function(response) {
27 me.update(response.result.data);
8acd4d9a 28 },
e4dc0a14
DM
29 });
30 }
8acd4d9a 31 },
e4dc0a14 32});