]> git.proxmox.com Git - pmg-gui.git/commitdiff
quarantine grids: use arrow function for size renderer
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 22 Oct 2022 14:13:46 +0000 (16:13 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 22 Oct 2022 14:14:23 +0000 (16:14 +0200)
quicker to read and avoids "violating" style guide due to on-line
normal functions

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/AttachmentQuarantine.js
js/SpamQuarantine.js
js/VirusQuarantine.js

index c1dd50f20288c7fb22bcb2093f9fb167e4b43616..b295448bc1d5e510cc2d604471b499d572d537a0 100644 (file)
@@ -124,7 +124,7 @@ Ext.define('PMG.AttachmentQuarantine', {
                },
                {
                    header: gettext('Size') + ' (KB)',
-                   renderer: function(v) { return Ext.Number.toFixed(v/1024, 0); },
+                   renderer: v => Ext.Number.toFixed(v/1024, 0),
                    dataIndex: 'bytes',
                    align: 'right',
                    width: 90,
index bfa71de87cb624edcb5bdd021491d8f04e2a4d51..7b25e48719754fb34361c351b668605f77952d12 100644 (file)
@@ -289,7 +289,7 @@ Ext.define('PMG.SpamQuarantine', {
                },
                {
                    header: gettext('Size') + ' (KB)',
-                   renderer: function(v) { return Ext.Number.toFixed(v/1024, 0); },
+                   renderer: v => Ext.Number.toFixed(v/1024, 0),
                    dataIndex: 'bytes',
                    align: 'right',
                    width: 90,
index 0dba784a4b30f0692d31f8b7235f307cb4c0135b..e6274903d3645972fabdd5d2bf369a7d3dedd4ae 100644 (file)
@@ -133,7 +133,7 @@ Ext.define('PMG.VirusQuarantine', {
                },
                {
                    header: gettext('Size') + ' (KB)',
-                   renderer: function(v) { return Ext.Number.toFixed(v/1024, 0); },
+                   renderer: v => Ext.Number.toFixed(v/1024, 0),
                    dataIndex: 'bytes',
                    align: 'right',
                    width: 90,