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