Skip to content

Commit

Permalink
Fix clicking on server-supplied categories.
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Mar 10, 2019
1 parent fbd2a31 commit 1e631ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.3.5
-----
1. Fix clicking on server-supplied categories.

0.3.4
-----
1. Fix sub-toolbar actions when showing album track list navigated into via a
Expand Down
8 changes: 5 additions & 3 deletions MaterialSkin/HTML/material/html/js/browse-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,13 @@ var lmsBrowse = Vue.component("lms-browse", {
{ title: i18n("Random Mix"),
svg: "dice-multiple",
id: TOP_RANDOM_MIX_ID,
type: "app",
disabled: !this.randomMix },
{ title: i18n("Dynamic Playlists"),
command: ["dynamicplaylist", "browsejive"],
params: [],
svg: "dice-list",
type: "group",
id: TOP_DYNAMIC_PLAYLISTS_ID,
disabled: !this.dynamicPlaylists },
{ title: i18n("Years"),
Expand Down Expand Up @@ -553,7 +555,6 @@ var lmsBrowse = Vue.component("lms-browse", {
}

this.fetchingItems = true;
//console.log("FETCH command:" + command.command + " params:" + command.params);
var lmsBatchSize = item.cancache ? LMS_CACHE_BATCH_SIZE : LMS_BATCH_SIZE;
var start = item.range ? item.range.start : 0;
var count = item.range ? item.range.count < lmsBatchSize ? item.range.count : lmsBatchSize : batchSize ? batchSize : lmsBatchSize;
Expand Down Expand Up @@ -1334,7 +1335,6 @@ var lmsBrowse = Vue.component("lms-browse", {
});
cmd=c;
}
//console.log("COMMAND", cmd.command, cmd.params);
return cmd;
},
buildFullCommand(item, act, index) {
Expand Down Expand Up @@ -1500,6 +1500,7 @@ var lmsBrowse = Vue.component("lms-browse", {
svg: "dice-multiple",
id: TOP_RANDOM_MIX_ID,
group: GROUP_MY_MUSIC,
type: "app",
weight: c.weight ? parseFloat(c.weight) : 100 });
} else if (!c.id.startsWith("myMusicSearch") && !c.id.startsWith("opmlselect")) {
var command = this.buildCommand(c, "go", false);
Expand All @@ -1509,6 +1510,7 @@ var lmsBrowse = Vue.component("lms-browse", {
weight: c.weight ? parseFloat(c.weight) : 100,
group: GROUP_MY_MUSIC,
id: TOP_ID_PREFIX+c.id,
type: "group"
};

if (c.id.startsWith("myMusicArtists")) {
Expand All @@ -1535,7 +1537,7 @@ var lmsBrowse = Vue.component("lms-browse", {
item.icon = "computer";
} else if (c.id == "myMusicRandomAlbums") {
item.svg = "dice-album";
item.id=TOP_RANDOM_ALBUMS_ID;
item.id = TOP_RANDOM_ALBUMS_ID;
} else if (c.id.startsWith("myMusicTopTracks")) {
item.icon = "arrow_upward";
} else if (c.id.startsWith("myMusicFlopTracks")) {
Expand Down

0 comments on commit 1e631ab

Please sign in to comment.