]> git.proxmox.com Git - pmg-gui.git/blame - js/VirusCharts.js
MailTracker.js - display all receivers
[pmg-gui.git] / js / VirusCharts.js
CommitLineData
ff735274 1/*global Proxmox*/
db8f82ca
DM
2Ext.define('PMG.VirusCharts', {
3 extend: 'Ext.grid.GridPanel',
4 xtype: 'pmgVirusCharts',
5
3755c9e0 6 title: gettext('Statistics') + ': ' + gettext('Virus Charts'),
db8f82ca 7
50531ef9 8 border: false,
db8f82ca
DM
9 disableSelection: true,
10
11 tbar: [ { xtype: 'pmgStatTimeSelector' } ],
12
106ed6a2 13 emptyText: gettext('No data in database.'),
db8f82ca
DM
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});