From e07a02b0274abdb802a762f539f49de140497848 Mon Sep 17 00:00:00 2001 From: Alain Nussbaumer Date: Thu, 29 Feb 2024 10:52:36 +0100 Subject: [PATCH] [web] Remove useless test in beforeRouteUpdate method --- web-src/src/pages/PageAlbums.vue | 4 ---- web-src/src/pages/PageArtists.vue | 4 ---- web-src/src/pages/PageAudiobooksAlbums.vue | 4 ---- web-src/src/pages/PageAudiobooksArtist.vue | 6 +----- web-src/src/pages/PageAudiobooksArtists.vue | 4 ---- web-src/src/pages/PageComposers.vue | 4 ---- web-src/src/pages/PageGenreAlbums.vue | 4 ---- web-src/src/pages/PageGenreTracks.vue | 4 ---- web-src/src/pages/PageMusicRecentlyAdded.vue | 4 ---- 9 files changed, 1 insertion(+), 37 deletions(-) diff --git a/web-src/src/pages/PageAlbums.vue b/web-src/src/pages/PageAlbums.vue index abf4b1f6..4af4627f 100644 --- a/web-src/src/pages/PageAlbums.vue +++ b/web-src/src/pages/PageAlbums.vue @@ -99,10 +99,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.albums_list.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageArtists.vue b/web-src/src/pages/PageArtists.vue index ae16de32..0fa02c80 100644 --- a/web-src/src/pages/PageArtists.vue +++ b/web-src/src/pages/PageArtists.vue @@ -99,10 +99,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.artists_list.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageAudiobooksAlbums.vue b/web-src/src/pages/PageAudiobooksAlbums.vue index 04d417ff..9ea53a90 100644 --- a/web-src/src/pages/PageAudiobooksAlbums.vue +++ b/web-src/src/pages/PageAudiobooksAlbums.vue @@ -54,10 +54,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.albums.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageAudiobooksArtist.vue b/web-src/src/pages/PageAudiobooksArtist.vue index ce0a14f8..636d092d 100644 --- a/web-src/src/pages/PageAudiobooksArtist.vue +++ b/web-src/src/pages/PageAudiobooksArtist.vue @@ -70,10 +70,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.albums.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) @@ -83,8 +79,8 @@ export default { data() { return { - artist: {}, albums: new GroupedList(), + artist: {}, show_details_modal: false } }, diff --git a/web-src/src/pages/PageAudiobooksArtists.vue b/web-src/src/pages/PageAudiobooksArtists.vue index 1504a5f5..7dd0f5dc 100644 --- a/web-src/src/pages/PageAudiobooksArtists.vue +++ b/web-src/src/pages/PageAudiobooksArtists.vue @@ -54,10 +54,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.artists_list.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageComposers.vue b/web-src/src/pages/PageComposers.vue index 6ee999f7..0f451671 100644 --- a/web-src/src/pages/PageComposers.vue +++ b/web-src/src/pages/PageComposers.vue @@ -49,10 +49,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.composers.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageGenreAlbums.vue b/web-src/src/pages/PageGenreAlbums.vue index c68eedb6..d7feb0e4 100644 --- a/web-src/src/pages/PageGenreAlbums.vue +++ b/web-src/src/pages/PageGenreAlbums.vue @@ -82,10 +82,6 @@ export default { }) }, beforeRouteUpdate(to, from, next) { - if (!this.albums.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageGenreTracks.vue b/web-src/src/pages/PageGenreTracks.vue index e05766e5..66d516dd 100644 --- a/web-src/src/pages/PageGenreTracks.vue +++ b/web-src/src/pages/PageGenreTracks.vue @@ -94,10 +94,6 @@ export default { }) }, beforeRouteUpdate(to, from, next) { - if (!this.tracks_list.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response) diff --git a/web-src/src/pages/PageMusicRecentlyAdded.vue b/web-src/src/pages/PageMusicRecentlyAdded.vue index 6affbec1..0b084101 100644 --- a/web-src/src/pages/PageMusicRecentlyAdded.vue +++ b/web-src/src/pages/PageMusicRecentlyAdded.vue @@ -52,10 +52,6 @@ export default { }, beforeRouteUpdate(to, from, next) { - if (!this.recently_added.isEmpty()) { - next() - return - } const vm = this dataObject.load(to).then((response) => { dataObject.set(vm, response)