From 7a1c3e14413e377cabce2b667c799cd222366cc5 Mon Sep 17 00:00:00 2001 From: luckylooky2 Date: Fri, 24 May 2024 18:22:01 +0900 Subject: [PATCH] Fix: make kiosk 2-level-mode from 3-level-mode #38 --- public/app/core/components/AppChrome/AppChromeService.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/core/components/AppChrome/AppChromeService.tsx b/public/app/core/components/AppChrome/AppChromeService.tsx index 810ce533..1e9af163 100644 --- a/public/app/core/components/AppChrome/AppChromeService.tsx +++ b/public/app/core/components/AppChrome/AppChromeService.tsx @@ -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; }