web/admin: fix stage related flows not being shown in a list

closes #1941

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-16 10:13:10 +01:00
parent a105760123
commit bb34474101
1 changed files with 9 additions and 5 deletions

View File

@ -107,11 +107,15 @@ export class StageListPage extends TablePage<Stage> {
<div>${item.name}</div> <div>${item.name}</div>
<small>${item.verboseName}</small> <small>${item.verboseName}</small>
</div>`, </div>`,
html`${item.flowSet?.map((flow) => { html`<ul class="pf-c-list">
return html`<a href="#/flow/flows/${flow.slug}"> ${item.flowSet?.map((flow) => {
<code>${flow.slug}</code> return html`<li>
</a>`; <a href="#/flow/flows/${flow.slug}">
})}`, <code>${flow.slug}</code>
</a>
</li>`;
})}
</ul>`,
html` <ak-forms-modal> html` <ak-forms-modal>
<span slot="submit"> ${t`Update`} </span> <span slot="submit"> ${t`Update`} </span>
<span slot="header"> ${t`Update ${item.verboseName}`} </span> <span slot="header"> ${t`Update ${item.verboseName}`} </span>