minor unrelated fix: alignment in table desc

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2026-04-19 19:27:48 +02:00
committed by Teffen Ellis
parent 011f780b83
commit e7fcfb7e67
2 changed files with 14 additions and 5 deletions

View File

@@ -127,11 +127,15 @@ export class BoundStagesList extends Table<FlowStageBinding> {
protected override renderExpanded(item: FlowStageBinding): TemplateResult { protected override renderExpanded(item: FlowStageBinding): TemplateResult {
return html`<div class="pf-c-content"> return html`<div class="pf-c-content">
<p>${msg("These bindings control if this stage will be applied to the flow.")}</p>
<ak-bound-policies-list <ak-bound-policies-list
.target=${item.policybindingmodelPtrId} .target=${item.policybindingmodelPtrId}
.policyEngineMode=${item.policyEngineMode} .policyEngineMode=${item.policyEngineMode}
> >
<span slot="description"
>${msg(
"These bindings control if this stage will be applied to the flow.",
)}</span
>
</ak-bound-policies-list> </ak-bound-policies-list>
</div>`; </div>`;
} }

View File

@@ -242,7 +242,12 @@ export class BoundPoliciesList<T extends PolicyBinding = PolicyBinding> extends
if (policyEngineMode === undefined) { if (policyEngineMode === undefined) {
return nothing; return nothing;
} }
return html`<p class="policy-desc"> return html`${this.findSlotted("description")
? html`<p class="policy-desc">
<slot name="description"></slot>
</p>`
: nothing}
<p class="policy-desc">
${msg(str`The currently selected policy engine mode is ${policyEngineMode.label}:`)} ${msg(str`The currently selected policy engine mode is ${policyEngineMode.label}:`)}
${policyEngineMode.description} ${policyEngineMode.description}
</p>`; </p>`;