From 91955689a291265df392a4e8b3f37fbb12afc4ad Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 23 Aug 2026 12:23:07 +0200 Subject: [PATCH] include system name --- mock-api/restServer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mock-api/restServer.ts b/mock-api/restServer.ts index a82d209c3..7f9de376a 100644 --- a/mock-api/restServer.ts +++ b/mock-api/restServer.ts @@ -450,6 +450,8 @@ function upgradeImportantMessages(version: string) { // called by Action endpoint getVersions // Set MOCK_OFFLINE = true to simulate a device with no internet (omits stable/dev). const MOCK_OFFLINE = false; +// const MOCK_OFFLINE = true; + function get_versions() { const isDev = THIS_VERSION.includes('dev'); const currentUpgradeable = @@ -457,6 +459,7 @@ function get_versions() { (isDev ? DEV_VERSION_IS_UPGRADEABLE : STABLE_VERSION_IS_UPGRADEABLE); const data: { + system_name: string; current: { version: string; type: 'stable' | 'dev'; @@ -466,6 +469,7 @@ function get_versions() { stable?: { version: string; date: string; upgradeable: boolean }; dev?: { version: string; date: string; upgradeable: boolean }; } = { + system_name: settings.system_name, current: { version: THIS_VERSION, type: isDev ? 'dev' : 'stable',