web/admin: fix formatting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
6036d88392
commit
f861737b85
|
@ -356,19 +356,25 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
||||||
ordering: "scope_name",
|
ordering: "scope_name",
|
||||||
})
|
})
|
||||||
.then((scopes) => {
|
.then((scopes) => {
|
||||||
return scopes.results.filter((scope) => {
|
return scopes.results
|
||||||
return !scope.managed?.startsWith("goauthentik.io/providers");
|
.filter((scope) => {
|
||||||
}).map((scope) => {
|
return !scope.managed?.startsWith(
|
||||||
const selected = (this.instance?.propertyMappings || []).some((su) => {
|
"goauthentik.io/providers",
|
||||||
return su == scope.pk;
|
);
|
||||||
|
})
|
||||||
|
.map((scope) => {
|
||||||
|
const selected = (
|
||||||
|
this.instance?.propertyMappings || []
|
||||||
|
).some((su) => {
|
||||||
|
return su == scope.pk;
|
||||||
|
});
|
||||||
|
return html`<option
|
||||||
|
value=${ifDefined(scope.pk)}
|
||||||
|
?selected=${selected}
|
||||||
|
>
|
||||||
|
${scope.name}
|
||||||
|
</option>`;
|
||||||
});
|
});
|
||||||
return html`<option
|
|
||||||
value=${ifDefined(scope.pk)}
|
|
||||||
?selected=${selected}
|
|
||||||
>
|
|
||||||
${scope.name}
|
|
||||||
</option>`;
|
|
||||||
});
|
|
||||||
}),
|
}),
|
||||||
html`<option>${t`Loading...`}</option>`,
|
html`<option>${t`Loading...`}</option>`,
|
||||||
)}
|
)}
|
||||||
|
|
Reference in New Issue