web: fix theming issues when using automatic (#4898)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -8,7 +8,7 @@ import { globalAK } from "@goauthentik/common/global"; | ||||
| import { configureSentry } from "@goauthentik/common/sentry"; | ||||
| import { first } from "@goauthentik/common/utils"; | ||||
| import { WebsocketClient } from "@goauthentik/common/ws"; | ||||
| import { AdoptedStyleSheetsElement, Interface } from "@goauthentik/elements/Base"; | ||||
| import { Interface } from "@goauthentik/elements/Base"; | ||||
| import "@goauthentik/elements/LoadingOverlay"; | ||||
| import "@goauthentik/flow/stages/FlowErrorStage"; | ||||
| import "@goauthentik/flow/stages/RedirectStage"; | ||||
| @ -182,9 +182,8 @@ export class FlowExecutor extends Interface implements StageHost { | ||||
|         tenant().then((tenant) => (this.tenant = tenant)); | ||||
|     } | ||||
|  | ||||
|     async _initTheme(root: AdoptedStyleSheetsElement): Promise<void> { | ||||
|         const bootstrapTheme = globalAK()?.tenant.uiTheme || UiThemeEnum.Automatic; | ||||
|         this._applyTheme(root, bootstrapTheme); | ||||
|     async getTheme(): Promise<UiThemeEnum> { | ||||
|         return globalAK()?.tenant.uiTheme || UiThemeEnum.Automatic; | ||||
|     } | ||||
|  | ||||
|     submit(payload?: FlowChallengeResponseRequest): Promise<boolean> { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L