web/flows: fix rendering of help text on prompt stages

closes #2310

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-02-26 17:56:08 +01:00
parent 61f7db314a
commit fb60cefb72
2 changed files with 5 additions and 14 deletions

View File

@ -1,4 +1,4 @@
import { CSSResult, LitElement, css } from "lit"; import { CSSResult, LitElement } from "lit";
import { TemplateResult, html } from "lit"; import { TemplateResult, html } from "lit";
import { customElement, property } from "lit/decorators.js"; import { customElement, property } from "lit/decorators.js";
@ -10,18 +10,7 @@ import { ErrorDetail } from "@goauthentik/api";
@customElement("ak-form-element") @customElement("ak-form-element")
export class FormElement extends LitElement { export class FormElement extends LitElement {
static get styles(): CSSResult[] { static get styles(): CSSResult[] {
return [ return [PFForm, PFFormControl];
PFForm,
PFFormControl,
css`
slot {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-around;
}
`,
];
} }
@property() @property()

View File

@ -214,7 +214,9 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
if (query !== undefined) { if (query !== undefined) {
args.search = query; args.search = query;
} }
const groups = await new CoreApi(DEFAULT_CONFIG).coreGroupsList(args); const groups = await new CoreApi(DEFAULT_CONFIG).coreGroupsList(
args,
);
return groups.results; return groups.results;
}} }}
.renderElement=${(group: Group): string => { .renderElement=${(group: Group): string => {