web/admin: fix default order for *bindingForms

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-06 16:56:19 +02:00
parent 4b2119510c
commit e678e3553b
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ export class FlowViewPage extends LitElement {
slug: this.flow.slug slug: this.flow.slug
}).then(link => { }).then(link => {
const finalURL = `${link.link}?next=/%23${window.location.href}`; const finalURL = `${link.link}?next=/%23${window.location.href}`;
window.open(finalURL, '_blank'); window.open(finalURL, "_blank");
}); });
}}> }}>
${t`Execute`} ${t`Execute`}

View file

@ -128,7 +128,7 @@ export class StageBindingForm extends Form<FlowStageBinding> {
label=${t`Order`} label=${t`Order`}
?required=${true} ?required=${true}
name="order"> name="order">
<input type="number" value="${until(this.getOrder(), this.fsb?.order)}" class="pf-c-form-control" required> <input type="number" value="${until(this.getOrder())}" class="pf-c-form-control" required>
</ak-form-element-horizontal> </ak-form-element-horizontal>
<ak-form-element-horizontal <ak-form-element-horizontal
label=${t`Policy engine mode`} label=${t`Policy engine mode`}

View file

@ -194,7 +194,7 @@ export class PolicyBindingForm extends Form<PolicyBinding> {
label=${t`Order`} label=${t`Order`}
?required=${true} ?required=${true}
name="order"> name="order">
<input type="number" value="${until(this.getOrder(), this.binding?.order)}" class="pf-c-form-control" required> <input type="number" value="${until(this.getOrder())}" class="pf-c-form-control" required>
</ak-form-element-horizontal> </ak-form-element-horizontal>
<ak-form-element-horizontal <ak-form-element-horizontal
label=${t`Timeout`} label=${t`Timeout`}