web: misc fixes for admin and flow inspector (#12461)

* fix flow inspector not closable on error

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

# Conflicts:
#	authentik/enterprise/providers/ssf/views/configuration.py

* unrelated: fix flow inspector for in memory stages

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

* only open inspector when there's size

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

* fix relative links

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

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-12-23 14:08:42 +01:00
committed by GitHub
parent c82b79f10f
commit d17f781d11
8 changed files with 62 additions and 40 deletions

View File

@ -96,7 +96,7 @@ export class UserOAuthAccessTokenList extends Table<TokenModel> {
<small>${item.expires.toLocaleString()}</small>`
: msg("-")}`,
html`<ak-chip-group>
${item.scope.map((scope) => {
${item.scope.sort().map((scope) => {
return html`<ak-chip .removable=${false}>${scope}</ak-chip>`;
})}
</ak-chip-group>`,

View File

@ -97,7 +97,7 @@ export class UserOAuthRefreshTokenList extends Table<TokenModel> {
<small>${item.expires.toLocaleString()}</small>`
: msg("-")}`,
html`<ak-chip-group>
${item.scope.map((scope) => {
${item.scope.sort().map((scope) => {
return html`<ak-chip .removable=${false}>${scope}</ak-chip>`;
})}
</ak-chip-group>`,