web: fix flow's policy and stage count missing

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-27 22:02:01 +01:00
parent a4fd0dc597
commit 869f18483f
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ export class FlowListPage extends TablePage<Flow> {
</a>`, </a>`,
html`${item.name}`, html`${item.name}`,
html`${item.designation}`, html`${item.designation}`,
html`${item.stages?.size}`, html`${Array.from(item.stages || []).length}`,
html`${item.policies?.size}`, html`${Array.from(item.policies || []).length}`,
html` html`
<ak-modal-button href="${AdminURLManager.flows(`${item.pk}/update/`)}"> <ak-modal-button href="${AdminURLManager.flows(`${item.pk}/update/`)}">
<ak-spinner-button slot="trigger" class="pf-m-secondary"> <ak-spinner-button slot="trigger" class="pf-m-secondary">