]> git.proxmox.com Git - pmg-gui.git/blob - js/VirusCharts.js
improve gettext usage
[pmg-gui.git] / js / VirusCharts.js
1 /*global Proxmox*/
2 Ext.define('PMG.VirusCharts', {
3 extend: 'Ext.grid.GridPanel',
4 xtype: 'pmgVirusCharts',
5
6 title: gettext('Statistics') + ': ' + gettext('Virus Charts'),
7
8 border: false,
9 disableSelection: true,
10
11 tbar: [ { xtype: 'pmgStatTimeSelector' } ],
12
13 emptyText: gettext('No data in database'),
14 viewConfig: {
15 deferEmptyText: false
16 },
17
18 store: {
19 xclass: 'PMG.data.StatStore',
20 fields: [ 'name', 'count' ],
21 staturl: "/api2/json/statistics/virus"
22 },
23
24 columns: [
25 {
26 header: gettext('Name'),
27 flex: 1,
28 dataIndex: 'name'
29 },
30 {
31 header: gettext('Count'),
32 width: 150,
33 dataIndex: 'count'
34 }
35 ],
36
37 initComponent: function() {
38 var me = this;
39
40 me.callParent();
41
42 Proxmox.Utils.monStoreErrors(me, me.store);
43 }
44 });