0efee2a660
* return logs when importing flow Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * improve error handling, show logs Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { AKElement } from "@goauthentik/elements/Base";
|
|
import { PFSize } from "@goauthentik/elements/Spinner";
|
|
|
|
import { CSSResult, TemplateResult, css, html } from "lit";
|
|
import { customElement, property } from "lit/decorators.js";
|
|
|
|
import PFBase from "@patternfly/patternfly/patternfly-base.css";
|
|
|
|
@customElement("ak-loading-overlay")
|
|
export class LoadingOverlay extends AKElement {
|
|
@property({ type: Boolean })
|
|
topMost = false;
|
|
|
|
static get styles(): CSSResult[] {
|
|
return [
|
|
PFBase,
|
|
css`
|
|
:host {
|
|
display: flex;
|
|
height: 100%;
|
|
width: 100%;
|
|
justify-content: center;
|
|
align-items: center;
|
|
position: absolute;
|
|
background-color: var(--pf-global--BackgroundColor--dark-transparent-200);
|
|
z-index: 1;
|
|
}
|
|
:host([topMost]) {
|
|
z-index: 999;
|
|
}
|
|
`,
|
|
];
|
|
}
|
|
|
|
render(): TemplateResult {
|
|
return html`<ak-spinner size=${PFSize.XLarge}></ak-spinner>`;
|
|
}
|
|
}
|