web/admin: show bound policies order first to match stages

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-20 14:59:17 +01:00
parent 81fdd097c6
commit 980d2a022c
1 changed files with 2 additions and 2 deletions

View File

@ -42,9 +42,9 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
columns(): TableColumn[] { columns(): TableColumn[] {
return [ return [
new TableColumn(t`Order`, "order"),
new TableColumn(t`Policy / User / Group`), new TableColumn(t`Policy / User / Group`),
new TableColumn(t`Enabled`, "enabled"), new TableColumn(t`Enabled`, "enabled"),
new TableColumn(t`Order`, "order"),
new TableColumn(t`Timeout`, "timeout"), new TableColumn(t`Timeout`, "timeout"),
new TableColumn(t`Actions`), new TableColumn(t`Actions`),
]; ];
@ -137,11 +137,11 @@ export class BoundPoliciesList extends Table<PolicyBinding> {
row(item: PolicyBinding): TemplateResult[] { row(item: PolicyBinding): TemplateResult[] {
return [ return [
html`${item.order}`,
html`${this.getPolicyUserGroupRow(item)}`, html`${this.getPolicyUserGroupRow(item)}`,
html` <ak-label color=${item.enabled ? PFColor.Green : PFColor.Orange}> html` <ak-label color=${item.enabled ? PFColor.Green : PFColor.Orange}>
${item.enabled ? t`Yes` : t`No`} ${item.enabled ? t`Yes` : t`No`}
</ak-label>`, </ak-label>`,
html`${item.order}`,
html`${item.timeout}`, html`${item.timeout}`,
html` ${this.getObjectEditButton(item)} html` ${this.getObjectEditButton(item)}
<ak-forms-modal size=${PFSize.Medium}> <ak-forms-modal size=${PFSize.Medium}>