web/admin: don't auto-select certificate for LDAP source verification

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-20 19:31:57 +01:00
parent 7f5fed2aea
commit ff8a812823
1 changed files with 1 additions and 4 deletions

View File

@ -160,11 +160,8 @@ export class LDAPSourceForm extends ModelForm<LDAPSource, string> {
})
.then((keys) => {
return keys.results.map((key) => {
let selected =
const selected =
this.instance?.peerCertificate === key.pk;
if (keys.results.length === 1) {
selected = true;
}
return html`<option
value=${ifDefined(key.pk)}
?selected=${selected}