diff --git a/README.md b/README.md index 221e2cbd..8a18ec06 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,9 @@ 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. replaceHttpWithHttpsForThumbnails: true # default is false. Use this if you want to replace http with https for thumbnails. mediaBrowserTitle: My favorites # default is 'All favorites'. Use this to change the title for the media browser/favorites section. + +# volumes specific +skipApplyButtonWhenGrouping: true # default is false. Will skip the apply button when grouping. ``` ## Using individual section cards diff --git a/src/editor/advanced-editor.ts b/src/editor/advanced-editor.ts index c9177c70..164d4c24 100644 --- a/src/editor/advanced-editor.ts +++ b/src/editor/advanced-editor.ts @@ -52,6 +52,10 @@ export const ADVANCED_SCHEMA = [ name: 'adjustVolumeRelativeToMainPlayer', selector: { boolean: {} }, }, + { + name: 'skipApplyButtonWhenGrouping', + selector: { boolean: {} }, + }, { type: 'string', help: 'Override default fallback artwork image if artwork is missing for the currently selected media', diff --git a/src/sections/grouping.ts b/src/sections/grouping.ts index f5082b44..00fe8369 100755 --- a/src/sections/grouping.ts +++ b/src/sections/grouping.ts @@ -27,6 +27,10 @@ export class Grouping extends LitElement { this.notJoinedPlayers = this.getNotJoinedPlayers(); this.joinedPlayers = this.getJoinedPlayers(); + if (this.store.config.skipApplyButtonWhenGrouping && this.modifiedItems.length > 0) { + this.applyGrouping(); + } + return html`