From c31016f1ac67bfaff0c6db9100af5d3810be206f Mon Sep 17 00:00:00 2001 From: Johan Frick Date: Sun, 17 Dec 2023 17:20:31 +0100 Subject: [PATCH] feature: make it possible to hide the browse media button --- README.md | 1 + src/components/media-browser-header.ts | 8 ++++++-- src/editor/advanced-editor.ts | 4 ++++ src/types.ts | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1925b6e..01b6cb73 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ topFavorites: # Show these favorites at the top of the list - Country Rocks - Kacey Musgraves Radio numberOfFavoritesToShow: 10 # Use this to limit the amount of favorites to show +hideBrowseMediaButton: true # default is false. Hides the button to open the media browser. ``` ## Using individual section cards diff --git a/src/components/media-browser-header.ts b/src/components/media-browser-header.ts index 988185a0..1b88f023 100644 --- a/src/components/media-browser-header.ts +++ b/src/components/media-browser-header.ts @@ -1,15 +1,16 @@ -import { css, html, LitElement } from 'lit'; +import { css, html, LitElement, nothing } from 'lit'; import { property } from 'lit/decorators.js'; import { MediaPlayerEntityFeature } from '../types'; import Store from '../model/store'; class MediaBrowserHeader extends LitElement { - @property({attribute: false}) store!: Store; + @property({ attribute: false }) store!: Store; render() { return html`
All Favorites