]> git.proxmox.com Git - pmg-gui.git/commit
renderer: s/format_size/render_size/
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 11:42:05 +0000 (12:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Nov 2022 12:16:51 +0000 (13:16 +0100)
commitff23b1b37b690bd3ea46470e45eee54fda62bf5c
treefef3bca3e32e1fdfe117df44f0768ac698b8fc60
parent550ec9a812d34fe8a6b0b2bd34889dc03d1f91c0
renderer: s/format_size/render_size/

format_size is the "lower" level helper and is not fit (anymore) to
be set as renderer directly, as its parameter signature may clash
with the extra, different ones, that renderers get passed.

For example, the useSI param always gets evaluated as true due to
the metaData "truthy" value that calls to a renderer get passed along
most of the time.

Use the render_size instead, a wrapper which only passes along value
to format_size.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/AttachmentGrid.js
js/BackupRestore.js
js/PBSSnapshotView.js
js/PostfixMailQueue.js