mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-21 15:04: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 {
|
||||
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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user