mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 06:54:24 +01:00
Remove navigation items on hardware button pages
This commit is contained in:
@@ -200,7 +200,12 @@ function HandleHardwareButton(method: string): void {
|
|||||||
else {
|
else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set pageId to -1, because of the navigation arrows
|
||||||
|
let tempPageId = pageId;
|
||||||
|
pageId = -1;
|
||||||
GeneratePage(page);
|
GeneratePage(page);
|
||||||
|
pageId = tempPageId;
|
||||||
}
|
}
|
||||||
|
|
||||||
function HandleStartupProcess(): void {
|
function HandleStartupProcess(): void {
|
||||||
@@ -560,6 +565,8 @@ function GetNavigationString(pageId: number): string {
|
|||||||
return "0|1";
|
return "0|1";
|
||||||
case config.pages.length - 1:
|
case config.pages.length - 1:
|
||||||
return "1|0";
|
return "1|0";
|
||||||
|
case -1:
|
||||||
|
return "0|0";
|
||||||
default:
|
default:
|
||||||
return "1|1";
|
return "1|1";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user