Skip to content

Commit

Permalink
Fix hide_dialog_media_actions option
Browse files Browse the repository at this point in the history
  • Loading branch information
elchininet committed Oct 15, 2023
1 parent 3197e51 commit 64437ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/kiosk-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,12 @@ class KioskMode implements KioskModeRunner {
const styles = [
this.hideDialogAttributes ? STYLES.DIALOG_ATTRIBUTES : '',
this.hideDialogTimerActions ? STYLES.DIALOG_TIMER_ACTIONS : '',
this.hideDialogMediaActions ? STYLES.DIALOG_MEDIA_ACTIONS : '',
(
this.hideDialogMediaActions &&
dialogChild.host.localName === ELEMENT.HA_DIALOG_MEDIA_PLAYER
)
? STYLES.DIALOG_MEDIA_ACTIONS
: '',
];
addStyle(styles.join(''), dialogChild);
if (queryString(OPTION.CACHE)) {
Expand Down

0 comments on commit 64437ea

Please sign in to comment.