From 51435d0742cbf45190dc3a61c25da9712862dda4 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Sat, 30 Apr 2022 20:07:40 +0200 Subject: [PATCH] Fix currentRoute --- front/src/components/audio/PlayButton.vue | 2 +- front/src/components/library/Home.vue | 2 +- front/src/components/library/Library.vue | 2 +- front/src/init/axios.ts | 4 ++-- front/src/types.ts | 4 ++-- front/src/utils/index.ts | 7 ++++--- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/front/src/components/audio/PlayButton.vue b/front/src/components/audio/PlayButton.vue index 420511c70..8bb50d74d 100644 --- a/front/src/components/audio/PlayButton.vue +++ b/front/src/components/audio/PlayButton.vue @@ -193,7 +193,7 @@ export default { return null }, onTrackPage () { - return this.$router.currentRoute.name === 'library.tracks.detail' + return this.$router.currentRoute.value.name === 'library.tracks.detail' } }, watch: { diff --git a/front/src/components/library/Home.vue b/front/src/components/library/Home.vue index 3f321569b..e020fee8c 100644 --- a/front/src/components/library/Home.vue +++ b/front/src/components/library/Home.vue @@ -1,6 +1,6 @@