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

@ -209,8 +209,8 @@ msgid "Application Icon"
msgstr "Application Icon"
#: src/flows/stages/consent/ConsentStage.ts
msgid "Application requires following permissions"
msgstr "Application requires following permissions"
msgid "Application requires following permissions:"
msgstr "Application requires following permissions:"
#: src/pages/applications/ApplicationForm.ts
msgid "Application's display Name."
@ -3167,6 +3167,7 @@ msgid "Service Provider Binding"
msgstr "Service Provider Binding"
#: src/pages/outposts/OutpostForm.ts
#: src/pages/outposts/OutpostListPage.ts
msgid "Service connection"
msgstr "Service connection"
@ -3997,6 +3998,10 @@ msgstr "Unhealthy outposts"
msgid "Unknown"
msgstr "Unknown"
#: src/pages/outposts/OutpostListPage.ts
msgid "Unmanaged"
msgstr "Unmanaged"
#: src/pages/admin-overview/charts/LDAPSyncStatusChart.ts
msgid "Unsynced sources"
msgstr "Unsynced sources"

View File

@ -209,7 +209,7 @@ msgid "Application Icon"
msgstr ""
#:
msgid "Application requires following permissions"
msgid "Application requires following permissions:"
msgstr ""
#:
@ -3158,6 +3158,7 @@ msgstr ""
msgid "Service Provider Binding"
msgstr ""
#:
#:
msgid "Service connection"
msgstr ""
@ -3985,6 +3986,10 @@ msgstr ""
msgid "Unknown"
msgstr ""
#:
msgid "Unmanaged"
msgstr ""
#:
msgid "Unsynced sources"
msgstr ""

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>