web: fix SpinnerButton not showing successful status correctly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-20 20:47:53 +01:00
parent 3d45956f15
commit 3eacd8b754
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { css, CSSResult, customElement, html, LitElement, property, TemplateResu
import PFBase from "@patternfly/patternfly/patternfly-base.css"; import PFBase from "@patternfly/patternfly/patternfly-base.css";
import PFButton from "@patternfly/patternfly/components/Button/button.css"; import PFButton from "@patternfly/patternfly/components/Button/button.css";
import PFSpinner from "@patternfly/patternfly/components/Spinner/spinner.css"; import PFSpinner from "@patternfly/patternfly/components/Spinner/spinner.css";
import AKGlobal from "../../authentik.css";
import { SpinnerSize } from "../Spinner"; import { SpinnerSize } from "../Spinner";
import { PRIMARY_CLASS, PROGRESS_CLASS } from "../../constants"; import { PRIMARY_CLASS, PROGRESS_CLASS } from "../../constants";
@ -21,6 +22,7 @@ export class SpinnerButton extends LitElement {
PFBase, PFBase,
PFButton, PFButton,
PFSpinner, PFSpinner,
AKGlobal,
css` css`
button { button {
/* Have to use !important here, as buttons with pf-m-progress have transition already */ /* Have to use !important here, as buttons with pf-m-progress have transition already */