]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
fix #4271: api-viewer: display nested formats instead of [object Object]
authorMatthias Heiserer <m.heiserer@proxmox.com>
Wed, 12 Oct 2022 13:23:31 +0000 (15:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 19:35:22 +0000 (20:35 +0100)
commit7148e22691c23d14195a1d9bfa8949b4f78a4288
tree7b80e1e466a0a11fcc7e7468e2072b759ae5fb92
parent18afb0491cc04ac7805eca4db435beb30e550375
fix #4271: api-viewer: display nested formats instead of [object Object]

I tried to keep the format as close to the HTML docs as possible, but
there are a few discrepancies between HTML docs and how this patch
displays parameters, instead of:
- <enum>,the enum variants are displayed. [1]
- <0|1>, <boolean> is displayed.

[1] The HTML docs explain parameters after the initial format string,
which the GUI doesn't (and there's no space for that). Showing the
variants inline is the easiest way to not loose information here.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
src/api-viewer/APIViewer.js