web/admin: use radio for client type (#5499)

* web/admin: use radio for client type

also fix search select not correctly passing all items in .selected callback

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* include unrelated typo fix

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-05-06 00:11:27 +02:00
committed by GitHub
parent 95a679ab3b
commit 36bd4b1e51
13 changed files with 119 additions and 43 deletions

View File

@ -110,7 +110,7 @@ export class SearchSelect<T> extends AKElement {
this.isFetchingData = true;
this.fetchObjects(this.query).then((objects) => {
objects.forEach((obj) => {
if (this.selected && this.selected(obj, this.objects || [])) {
if (this.selected && this.selected(obj, objects || [])) {
this.selectedObject = obj;
}
});