Merge pull request #884 from GGrandma/develop

Add release date sorting option to albums
This commit is contained in:
cryptofyre 2022-04-17 18:25:23 -05:00 committed by GitHub
commit 8fc8f33a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,10 +82,10 @@ const app = new Vue({
}, },
albums: { albums: {
sortingOptions: { sortingOptions: {
"albumName": "0",
"artistName": "0", "artistName": "0",
"name": "0", "name": "0",
"genre": "0" "genre": "0",
"releaseDate": "0"
}, },
viewAs: 'covers', viewAs: 'covers',
sorting: ["dateAdded", "name"], // [0] = recentlyadded page, [1] = albums page sorting: ["dateAdded", "name"], // [0] = recentlyadded page, [1] = albums page
@ -349,10 +349,10 @@ const app = new Vue({
} }
app.$data.library.albums.sortingOptions = { app.$data.library.albums.sortingOptions = {
"albumName": app.getLz('term.sortBy.album'),
"artistName": app.getLz('term.sortBy.artist'), "artistName": app.getLz('term.sortBy.artist'),
"name": app.getLz('term.sortBy.name'), "name": app.getLz('term.sortBy.name'),
"genre": app.getLz('term.sortBy.genre') "genre": app.getLz('term.sortBy.genre'),
"releaseDate": app.getLz('term.sortBy.releaseDate')
} }
app.$data.library.artists.sortingOptions = { app.$data.library.artists.sortingOptions = {