outposts: add better UI for showing mismatched versions (#10885)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-08-12 23:17:15 +02:00
committed by GitHub
parent fccb805dbd
commit bb9e679b9a
11 changed files with 53 additions and 19 deletions

View File

@ -31,6 +31,13 @@ export class VersionStatusCard extends AdminStatusCard<Version> {
message: html`${msg(str`${value.versionLatest} is available!`)}`,
});
}
if (value.outpostOutdated) {
return Promise.resolve<AdminStatus>({
icon: "fa fa-exclamation-triangle pf-m-warning",
message: html`${msg("An outpost is on an incorrect version!")}
<a href="#/outpost/outposts">${msg("Check outposts.")}</a>`,
});
}
if (value.versionLatestValid) {
return Promise.resolve<AdminStatus>({
icon: "fa fa-check-circle pf-m-success",