Skip to content

Commit

Permalink
Tagging delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Marekkon5 committed Feb 17, 2024
1 parent 82c9714 commit 40c1487
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
5 changes: 2 additions & 3 deletions client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,13 @@

<!-- Content -->
<q-page-container class="content" ref="contentContainer">
<!-- <router-view v-slot='{ Component }' v-if='$1t.info.value.ready'>
<router-view v-slot='{ Component }' v-if='$1t.info.value.ready'>
<transition name="fade">
<keep-alive :include='["AudioFeatures"]'>
<component :is='Component'></component>
</keep-alive>
</transition>
</router-view> -->
<router-view></router-view>
</router-view>
<!-- Loading -->
<div v-if='!$1t.info.value.ready' class='row justify-center items-center' style='height: calc(100vh - 64px)'>
<q-circular-progress indeterminate color='primary' size='64px'></q-circular-progress>
Expand Down
21 changes: 14 additions & 7 deletions client/src/views/Autotagger.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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))
Expand Down

0 comments on commit 40c1487

Please sign in to comment.