From a9deed723ec2f91eedf30ae475acd8f72016be0a Mon Sep 17 00:00:00 2001 From: britzelpuf <101716456+britzelpuf@users.noreply.github.com> Date: Mon, 11 Apr 2022 22:37:36 +0200 Subject: [PATCH] Remove navigation items on hardware button pages --- ioBroker/NsPanelTs.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index 9694f2d5..5dcfa6ca 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -200,7 +200,12 @@ function HandleHardwareButton(method: string): void { else { return; } + + // Set pageId to -1, because of the navigation arrows + let tempPageId = pageId; + pageId = -1; GeneratePage(page); + pageId = tempPageId; } function HandleStartupProcess(): void { @@ -560,6 +565,8 @@ function GetNavigationString(pageId: number): string { return "0|1"; case config.pages.length - 1: return "1|0"; + case -1: + return "0|0"; default: return "1|1"; }