web/flows: clean up loading, syntax and transitions (#10792)
* remove redundant bindings to ${true}
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* better ui for loading during autosubmit
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* default to loading label when setting ?loading
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* remove more html``
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* refactor non_field_errors
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* remove more html``
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* no loading label for overlay
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix py
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* Revert "web: bump the wdio group across 2 directories with 5 updates (#10945)"
This reverts commit ea14c57989.
---------
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -2,6 +2,7 @@ import { PFSize } from "@goauthentik/common/enums.js";
|
||||
import { AKElement } from "@goauthentik/elements/Base";
|
||||
import "@goauthentik/elements/Spinner";
|
||||
|
||||
import { msg } from "@lit/localize";
|
||||
import { CSSResult, TemplateResult, css, html } from "lit";
|
||||
import { customElement, property } from "lit/decorators.js";
|
||||
|
||||
@ -21,7 +22,7 @@ export class EmptyState extends AKElement {
|
||||
fullHeight = false;
|
||||
|
||||
@property()
|
||||
header = "";
|
||||
header?: string;
|
||||
|
||||
static get styles(): CSSResult[] {
|
||||
return [
|
||||
@ -49,7 +50,9 @@ export class EmptyState extends AKElement {
|
||||
"fa-question-circle"} pf-c-empty-state__icon"
|
||||
aria-hidden="true"
|
||||
></i>`}
|
||||
<h1 class="pf-c-title pf-m-lg">${this.header}</h1>
|
||||
<h1 class="pf-c-title pf-m-lg">
|
||||
${this.loading && this.header === undefined ? msg("Loading") : this.header}
|
||||
</h1>
|
||||
<div class="pf-c-empty-state__body">
|
||||
<slot name="body"></slot>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user