Skip to content

Commit

Permalink
Fix: make kiosk 2-level-mode from 3-level-mode #38
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed May 24, 2024
1 parent a9c4fba commit 7a1c3e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/app/core/components/AppChrome/AppChromeService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,14 @@ export class AppChromeService {
private getNextKioskMode() {
const { kioskMode, searchBarHidden } = this.state.getValue();

if (searchBarHidden || kioskMode === KioskMode.TV) {
if (searchBarHidden || kioskMode === null) {
appEvents.emit(AppEvents.alertSuccess, [t('navigation.kiosk.tv-alert', 'Press ESC to exit kiosk mode')]);
return KioskMode.Full;
}

if (!kioskMode) {
return KioskMode.TV;
}
// if (!kioskMode) {
// return KioskMode.TV;
// }

return null;
}
Expand Down

0 comments on commit 7a1c3e1

Please sign in to comment.