]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
info widget: early return from update if text & value stayed the same
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 4 Jul 2021 19:59:59 +0000 (21:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 4 Jul 2021 20:01:40 +0000 (22:01 +0200)
commit76899da69807aaac6d3a4d5e22d2e6c2ca443499
treeb0477bf3ac32683005202b105a6d69576cf26563
parent1d3d61ead98141ce80bbbc4645bf34eac572b194
info widget: early return from update if text & value stayed the same

No need then and if we'd call into update we'd still generate new
elements which is annoying for debugging and extra DOM work we can
avoid.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/InfoWidget.js