diff --git a/web/src/admin/admin-overview/cards/VersionStatusCard.ts b/web/src/admin/admin-overview/cards/VersionStatusCard.ts index 8d06cfc35..c21b7bb8c 100644 --- a/web/src/admin/admin-overview/cards/VersionStatusCard.ts +++ b/web/src/admin/admin-overview/cards/VersionStatusCard.ts @@ -25,15 +25,7 @@ export class VersionStatusCard extends AdminStatusCard { if (value.buildHash) { return Promise.resolve({ icon: "fa fa-check-circle pf-m-success", - message: html` - ${t`Build hash: `} - - ${value.buildHash?.substring(0, 7)} - - `, + message: html`${t`Based on ${value.versionCurrent}`}`, }); } if (value.outdated) { @@ -49,6 +41,16 @@ export class VersionStatusCard extends AdminStatusCard { } renderValue(): TemplateResult { + if (this.value?.buildHash) { + return html` + + ${this.value.buildHash?.substring(0, 7)} + + `; + } return html`${this.value?.versionCurrent}`; } }