web/admin: fix proxy provider's certificate not being optional

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-30 00:22:58 +02:00
parent f51ab7a878
commit 11607622a3

View file

@ -154,6 +154,7 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
label=${t`Certificate`}
name="certificate">
<select class="pf-c-form-control">
<option value="" ?selected=${this.instance?.certificate === undefined}>---------</option>
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
ordering: "pk",
hasKey: "true",