outposts: ensure Outpost API is backwards compatible

This commit is contained in:
Jens Langhammer
2021-02-08 19:51:46 +01:00
parent b64ecbde22
commit 78bcb90a1e
4 changed files with 11 additions and 3 deletions

View File

@ -12,7 +12,8 @@ export class Outpost {
pk: string;
name: string;
providers: Provider[];
providers: number[];
providers_obj: Provider[];
service_connection?: string;
_config: QueryArguments;
token_identifier: string;

View File

@ -46,7 +46,7 @@ export class OutpostListPage extends TablePage<Outpost> {
row(item: Outpost): TemplateResult[] {
return [
html`${item.name}`,
html`<ul>${item.providers.map((p) => {
html`<ul>${item.providers_obj.map((p) => {
return html`<li><a href="#/providers/${p.pk}">${p.name}</a></li>`;
})}</ul>`,
html`<ak-outpost-health outpostId=${item.pk}></ak-outpost-health>`,