outposts: add service connection to outpost API

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-06-09 09:38:09 +02:00
parent de11181890
commit 2addf71f37
7 changed files with 40 additions and 6 deletions

View File

@ -43,6 +43,7 @@ export class OutpostListPage extends TablePage<Outpost> {
return [
new TableColumn(t`Name`, "name"),
new TableColumn(t`Providers`),
new TableColumn(t`Service connection`, "service_connection__name"),
new TableColumn(t`Health and Version`),
new TableColumn(""),
];
@ -57,6 +58,7 @@ export class OutpostListPage extends TablePage<Outpost> {
html`<ul>${item.providersObj?.map((p) => {
return html`<li><a href="#/core/providers/${p.pk}">${p.name}</a></li>`;
})}</ul>`,
html`${item.serviceConnectionObj?.name || t`Unmanaged`}`,
html`<ak-outpost-health outpostId=${ifDefined(item.pk)}></ak-outpost-health>`,
html`
<ak-forms-modal>