Skip to content

Commit

Permalink
Merge pull request #121 from NemesisRE/fix_bug_hide_dialog_media_actions
Browse files Browse the repository at this point in the history
Fix hide_dialog_media_actions option
  • Loading branch information
NemesisRE authored Oct 16, 2023
2 parents 3197e51 + 64437ea commit e6ba0ba
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 e6ba0ba

Please sign in to comment.