Skip to content

Commit

Permalink
Upd: Add option to show stickers in album detail info view
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Dec 17, 2024
1 parent d5eed9d commit beb6cef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
22 changes: 10 additions & 12 deletions htdocs/js/globales.js
Original file line number Diff line number Diff line change
Expand Up @@ -1196,24 +1196,22 @@ const mpdVersion = {
//remember offset for filesystem browsing uris
const browseFilesystemHistory = {};

//list of stickers for songs
//list of stickers for tags, playlists and filters (albums)
/** @type {Array} */
const stickerListSongs = [
'playCount',
'skipCount',
'lastPlayed',
'lastSkipped',
const stickerListAll = [
'like',
'rating',
'elapsed'
'playCount',
'lastPlayed'
];

//list of stickers for playlists and filters (albums)
//list of stickers for songs
/** @type {Array} */
const stickerListAll = [
'like',
'rating'
];
const stickerListSongs = stickerListAll.concat([
'skipCount',
'lastSkipped',
'elapsed'
]);

//application state
const app = {};
Expand Down
5 changes: 4 additions & 1 deletion htdocs/js/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,16 @@ function setFields(tableName) {
if (features.featDbAdded === true) {
tags.push('Added');
}
setFieldsStickers(tags, stickerListAll);
return tags.filter(function(value) {
return value !== 'Disc' &&
value !== 'Album';
});
}
else {
return settings.tagListAlbum;
const tags = settings.tagListAlbum.slice();
setFieldsStickers(tags, stickerListAll);
return tags;
}
}
// No Default
Expand Down

0 comments on commit beb6cef

Please sign in to comment.