]> git.proxmox.com Git - pve-manager.git/commit
ui: node/ACME: only enable order button when it should work
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 7 May 2020 08:27:12 +0000 (10:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 7 May 2020 10:54:30 +0000 (12:54 +0200)
commit1580b605018c1ad3e01bd35b730b3989d8e992de
treec5a317711ad26a2c414f2954e2744b9304c8242a
parent3071cc5be1d40c279c542095dd7508045e0ad888
ui: node/ACME: only enable order button when it should work

to order a ceritificate, we need at least one configured domain, and
the configured account (or default) must exist

so track the domaincount in the viewmodel and introduce a
'canOrder' formula which is only true when domaincount > 0 and
account is set (if the configured account does not exist, or no account
exists at all we set 'account' to 'null')

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/node/ACME.js