From c94b905d725cb54e0d54e55c50b8d9649caf38c0 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Tue, 27 Feb 2024 16:27:37 +0100 Subject: [PATCH] [web] Rename indexList to indices --- web-src/src/components/IndexButtonList.vue | 10 +++++----- web-src/src/lib/GroupedList.js | 4 ++-- web-src/src/pages/PageAlbum.vue | 2 +- web-src/src/pages/PageAlbums.vue | 2 +- web-src/src/pages/PageArtistTracks.vue | 2 +- web-src/src/pages/PageArtists.vue | 2 +- web-src/src/pages/PageAudiobooksAlbums.vue | 2 +- web-src/src/pages/PageAudiobooksArtists.vue | 2 +- web-src/src/pages/PageAudiobooksGenres.vue | 2 +- web-src/src/pages/PageComposerTracks.vue | 2 +- web-src/src/pages/PageComposers.vue | 2 +- web-src/src/pages/PageGenreAlbums.vue | 12 ++++++------ web-src/src/pages/PageGenreTracks.vue | 2 +- web-src/src/pages/PageGenres.vue | 2 +- 14 files changed, 24 insertions(+), 24 deletions(-) diff --git a/web-src/src/components/IndexButtonList.vue b/web-src/src/components/IndexButtonList.vue index 1bc2171f..c814ac72 100644 --- a/web-src/src/components/IndexButtonList.vue +++ b/web-src/src/components/IndexButtonList.vue @@ -2,11 +2,11 @@
@@ -15,7 +15,7 @@ diff --git a/web-src/src/lib/GroupedList.js b/web-src/src/lib/GroupedList.js index 3ae6f492..5387a4f3 100644 --- a/web-src/src/lib/GroupedList.js +++ b/web-src/src/lib/GroupedList.js @@ -115,7 +115,7 @@ export class GroupedList { this.offset = offset this.limit = limit this.count = items.length - this.indexList = [] + this.indices = [] this.group(noop()) } @@ -135,7 +135,7 @@ export class GroupedList { : itemsFiltered // Create index list - this.indexList = [...new Set(itemsSorted.map(options.groupKeyFn))] + this.indices = [...new Set(itemsSorted.map(options.groupKeyFn))] // Group item list this.itemsGrouped = itemsSorted.reduce((r, item) => { diff --git a/web-src/src/pages/PageAlbum.vue b/web-src/src/pages/PageAlbum.vue index 6b125840..9829cc72 100644 --- a/web-src/src/pages/PageAlbum.vue +++ b/web-src/src/pages/PageAlbum.vue @@ -64,7 +64,7 @@ const dataObject = { vm.album = response[0].data vm.tracks = new GroupedList(response[1].data) vm.tracks.group(byMedium('disc_number')) - if (vm.tracks.indexList <= 1) { + if (vm.tracks.indices <= 1) { vm.tracks.group(noop()) } } diff --git a/web-src/src/pages/PageAlbums.vue b/web-src/src/pages/PageAlbums.vue index 3d4a6683..abf4b1f6 100644 --- a/web-src/src/pages/PageAlbums.vue +++ b/web-src/src/pages/PageAlbums.vue @@ -3,7 +3,7 @@