From e4de1997a3c34a9fb96136e82446ee926104c3d0 Mon Sep 17 00:00:00 2001 From: adb-sh Date: Sat, 1 Oct 2022 21:48:36 +0200 Subject: [PATCH] refresh spotify api token; auto reload currentlyPlaying --- src/components/CurrentlyPlaying.vue | 6 ++++-- src/components/PromiseResolver.vue | 15 ++++++++++++--- src/views/UserPage.vue | 15 ++++++++++++++- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/src/components/CurrentlyPlaying.vue b/src/components/CurrentlyPlaying.vue index de459f5..2f3c239 100644 --- a/src/components/CurrentlyPlaying.vue +++ b/src/components/CurrentlyPlaying.vue @@ -10,7 +10,9 @@ defineProps({
{{ currentlyPlaying.item.name }} - {{ currentlyPlaying.item.artists.map(artist => artist.name).join(', ') }} +
+ {{ currentlyPlaying.item.artists.map(artist => artist.name).join(', ') }} +
@@ -36,7 +38,7 @@ defineProps({ rel="noopener norefferrer" class="btn btn-outline-dark m-1" > - view playlist on Spotify + view {{ currentlyPlaying.context.type }} on Spotify

diff --git a/src/components/PromiseResolver.vue b/src/components/PromiseResolver.vue index 7d228d7..e35dc6e 100644 --- a/src/components/PromiseResolver.vue +++ b/src/components/PromiseResolver.vue @@ -24,7 +24,7 @@