mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-06-03 21:54:52 +00:00

optimized a few string EMail/Email/E-mail -> E-Mail No Data in Database/No data in database. -> No data in database etc. removed 'Outlook 2007' from gettext added some strings to gettext where they were missing (e.g. Active, etc.) Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
45 lines
802 B
JavaScript
45 lines
802 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);
|
|
}
|
|
});
|