Skip to content

Commit

Permalink
Feat: Add Last-Modified and Added to sort tags in Current Queue view
Browse files Browse the repository at this point in the history
Fix: Populate sort tags for Radio Favorites
  • Loading branch information
jcorporation committed Oct 17, 2024
1 parent 8fbcbd4 commit 2134394
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ This is a small maintenance release.

### Changelog

- Feat: Add Last-Modified and Added to sort tags in search view
- Feat: Add Last-Modified and Added to sort tags in Search and Current Queue view
- Fix: Populate sort tags for Radio Favorites

***

Expand Down
9 changes: 6 additions & 3 deletions htdocs/js/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ function addTagList(elId, list) {
}
}
else if (elId === 'BrowseRadioFavoritesSearchTags' ||
elId === 'BrowseRadioWebradiodbSortTagsList' ||
elId === 'BrowseRadioWebradiodbSearchTags')
elId === 'BrowseRadioFavoritesSortTagsList' ||
elId === 'BrowseRadioWebradiodbSearchTags' ||
elId === 'BrowseRadioWebradiodbSortTagsList')
{
const tags = ["Added", "Bitrate", "Codec", "Country", "Description", "Genres", "Homepage", "Languages", "Last-Modified", "Name", "Region"];
for (let i = 0, j = tags.length; i < j; i++) {
Expand All @@ -155,7 +156,9 @@ function addTagList(elId, list) {
);
}
}
else if (elId === 'SearchSortTagsList') {
else if (elId === 'SearchSortTagsList' ||
elId === 'QueueCurrentSortTagsList')
{
stack.appendChild(
elCreateTextTn('button', {"class": ["btn", "btn-secondary", "btn-sm"], "data-tag": "Added"}, 'Added')
);
Expand Down

0 comments on commit 2134394

Please sign in to comment.