pmg-gui/js/VirusCharts.js
Dominik Csapak ff735274ca jslint: add Proxmox global to files
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-10-23 17:28:56 +02:00

45 lines
803 B
JavaScript

/*global Proxmox*/
Ext.define('PMG.VirusCharts', {
extend: 'Ext.grid.GridPanel',
xtype: 'pmgVirusCharts',
title: gettext('Statistics') + ': ' + gettext('Virus Charts'),
border: false,
disableSelection: true,
tbar: [ { xtype: 'pmgStatTimeSelector' } ],
emptyText: gettext('No data in database.'),
viewConfig: {
deferEmptyText: false
},
store: {
xclass: 'PMG.data.StatStore',
fields: [ 'name', 'count' ],
staturl: "/api2/json/statistics/virus"
},
columns: [
{
header: gettext('Name'),
flex: 1,
dataIndex: 'name'
},
{
header: gettext('Count'),
width: 150,
dataIndex: 'count'
}
],
initComponent: function() {
var me = this;
me.callParent();
Proxmox.Utils.monStoreErrors(me, me.store);
}
});