Skip to content

Commit

Permalink
Check if header has menu[0]==play all to control adding actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Apr 5, 2020
1 parent 0ba100e commit 2d247d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaterialSkin/HTML/material/html/js/browse-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2d247d6

Please sign in to comment.