]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
add certificate panel
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 16 Mar 2021 10:24:20 +0000 (11:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 Mar 2021 11:25:58 +0000 (12:25 +0100)
commit60fead29a8d25e209b082c7775624a4b340e49e6
tree23955cc40bc80f186d376650f24c3c107cee0d93
parent63be5c590f8dbd34936dc5715efc59ce86539fb7
add certificate panel

Again, initially copied from PVE but adapted so it can be
used by both. (PVE side still needs to be tested though.)

The 'nodename' property is optional (since on PMG we
currently don't expose them via the UI directly). Instead,
the certificate info URL is required and the 'uploadButtons'
need to be passed, which just contains the certificate
"name", id (filename), url, and whether it is deletable and
whether a GUI reload is required after changing it. If only
1 entry is passed, the button stays a regular button (that
way PVE should still look the same), whereas in PMG we have
a menu to select between API and SMTP certificates.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/Makefile
src/panel/Certificates.js [new file with mode: 0644]
src/window/Certificates.js [new file with mode: 0644]