diff --git a/client/src/App.vue b/client/src/App.vue index 557e0b9..b7b4a96 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -44,14 +44,13 @@ - - +
diff --git a/client/src/views/Autotagger.vue b/client/src/views/Autotagger.vue index abffce4..fd0b579 100644 --- a/client/src/views/Autotagger.vue +++ b/client/src/views/Autotagger.vue @@ -166,7 +166,7 @@ async function startTagging() { $1t.config.value.type = 'autoTagger'; // Tag playlist rather than folder - let playlist = null; + let playlist: any = null; if ($1t.autoTaggerPlaylist.value && $1t.autoTaggerPlaylist.value.data) playlist = $1t.autoTaggerPlaylist.value; @@ -180,12 +180,19 @@ async function startTagging() { $1t.config.value.spotify = undefined; } - // Start - $1t.send('startTagging', { - config: $1t.config.value, - playlist - }); - await $router.push('/autotagger/status'); + // Start bit later because router wouldn't redirect + setTimeout(() => { + $1t.send('startTagging', { + config: $1t.config.value, + playlist + }); + }, 100); + + // Go to status page + setTimeout(async () => { + await $router.push('/autotagger/status'); + }, 10); + } const canStart = computed(() => (($1t.config.value.path || ($1t.autoTaggerPlaylist.value && $1t.autoTaggerPlaylist.value.data))