From a35b8f58622b371e0d1268770d979616c499e272 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 Jan 2023 11:16:53 +0100 Subject: [PATCH] web/admin: better show dev build Signed-off-by: Jens Langhammer --- .../admin-overview/cards/VersionStatusCard.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) 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}`; } }