From 2d247d64f392d84aa9bfdfca8f8a9c32f91a5f3a Mon Sep 17 00:00:00 2001 From: Craig Drummond Date: Sun, 5 Apr 2020 08:54:23 +0100 Subject: [PATCH] Check if header has menu[0]==play all to control adding actions --- MaterialSkin/HTML/material/html/js/browse-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MaterialSkin/HTML/material/html/js/browse-page.js b/MaterialSkin/HTML/material/html/js/browse-page.js index 2b5e85f12..0ba3b01e1 100644 --- a/MaterialSkin/HTML/material/html/js/browse-page.js +++ b/MaterialSkin/HTML/material/html/js/browse-page.js @@ -886,7 +886,7 @@ var lmsBrowse = Vue.component("lms-browse", { this.items = item.allSearchResults; this.headerSubTitle = item.subtitle; this.current = item; - if ((this.items[0].id.startsWith("album_id") && this.items.length<=50) || this.items[0].id.startsWith("track_id")) { + if (item.menu && item.menu.length>0 && item.menu[0]==PLAY_ALL_ACTION) { this.tbarActions=[ADD_ALL_ACTION, PLAY_ALL_ACTION]; } setScrollTop(this.scrollElement, 0);