From 25b9b7b582a84f200b6c606e8327ca11f116ff2d Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Tue, 19 Sep 2023 16:32:06 +0200 Subject: [PATCH] disable play button on artist dialog --- src/components/Player.vue | 1 - src/components/dialogs/ArtistViewer.vue | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 8b70d1f..d1ac890 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -208,7 +208,6 @@ export default { if (item.parent.parent && item.parent.parent.tracks) { parentId = item.parent.parent._id; } - console.log(parentId); this.$store.dispatch("user/resetProgress", parentId); window.clearInterval(this.intervalProgress); diff --git a/src/components/dialogs/ArtistViewer.vue b/src/components/dialogs/ArtistViewer.vue index 7d38aeb..954dc81 100644 --- a/src/components/dialogs/ArtistViewer.vue +++ b/src/components/dialogs/ArtistViewer.vue @@ -154,7 +154,7 @@ export default { this.$store.dispatch("artists/uploadNewCover", this.selectedArtist); }, loadUserProgress() { - if (this.selectedTrack.parent._id != this.selectedArtist._id) + if (!this.isPlaying || this.selectedTrack.parent.parent._id != this.selectedArtist._id) this.$store.dispatch("user/getProgress", this.selectedArtist); } }, @@ -165,6 +165,7 @@ export default { selectedArtist: ["artists/selectedArtist"], selectedTrack: ["tracks/selectedTrack"], favourites: ["user/favourites"], + isPlaying: ["player/isPlaying"] }), cover() { let covers = this.selectedArtist.covers;