web/admin: only show outpost deployment info when not embedded

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-05 11:11:44 +02:00
parent d1a1bfbbc5
commit 0452537e8b
1 changed files with 7 additions and 5 deletions

View File

@ -103,11 +103,13 @@ export class OutpostListPage extends TablePage<Outpost> {
<i class="fas fa-edit"></i>
</button>
</ak-forms-modal>
<ak-outpost-deployment-modal .outpost=${item} size=${PFSize.Medium}>
<button slot="trigger" class="pf-c-button pf-m-tertiary">
${t`View Deployment Info`}
</button>
</ak-outpost-deployment-modal>`,
${item.managed !== "goauthentik.io/outposts/embedded"
? html`<ak-outpost-deployment-modal .outpost=${item} size=${PFSize.Medium}>
<button slot="trigger" class="pf-c-button pf-m-tertiary">
${t`View Deployment Info`}
</button>
</ak-outpost-deployment-modal>`
: html``}`,
];
}