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