mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-14 21:50:33 +00:00
jslint: rework MailProcessing names to avoid reserved names
'in' is a reserved names, rework all names to match the outer names Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c17f9fe4d0
commit
7b18f75e06
@ -353,9 +353,9 @@ Ext.define('PMG.Dashboard', {
|
||||
height: 180,
|
||||
bind: {
|
||||
data: {
|
||||
'in': '{bytes_in}',
|
||||
'out': '{bytes_out}',
|
||||
'ptime': '{avg_ptime}'
|
||||
'bytes_in': '{bytes_in}',
|
||||
'bytes_out': '{bytes_out}',
|
||||
'avg_ptime': '{avg_ptime}'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -26,28 +26,28 @@ Ext.define('PMG.dashboard.MailProcessing', {
|
||||
{
|
||||
itemId: 'traffic',
|
||||
data: {
|
||||
in: 0,
|
||||
out: 0
|
||||
'bytes_in': 0,
|
||||
'bytes_out': 0
|
||||
},
|
||||
tpl: [
|
||||
'<h3><i class="fa fa-exchange green"></i> ' + gettext('Traffic') + '</h3>',
|
||||
'<table class="dash"><tr>',
|
||||
'<td class="right half"><h2>{in}</h2></td>',
|
||||
'<td class="right half"><h2>{bytes_in}</h2></td>',
|
||||
'<td class="left">' + PMG.Utils.format_rule_direction(0) + '</td>',
|
||||
'</tr><tr>',
|
||||
'<td class="right half"><h2>{out}</h2></td>',
|
||||
'<td class="right half"><h2>{bytes_out}</h2></td>',
|
||||
'<td class="left">' + PMG.Utils.format_rule_direction(1) + '</td>',
|
||||
'</tr></table>',
|
||||
'</tr></table>'
|
||||
]
|
||||
},
|
||||
{
|
||||
itemId: 'ptime',
|
||||
data: {
|
||||
avgptime: 0,
|
||||
'avg_ptime': 0
|
||||
},
|
||||
tpl: [
|
||||
'<h3><i class="fa fa-clock-o"></i> ' + gettext('Avg. Processing Time') + '</h3>',
|
||||
'<p><h2>{ptime}</h2></p>'
|
||||
'<p><h2>{avg_ptime}</h2></p>'
|
||||
]
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user