Browse Source

Update speech-to-text page

pull/1413/head
Hironsan 3 years ago
parent
commit
288cee34f2
1 changed files with 10 additions and 1 deletions
  1. 11
      frontend/pages/projects/_id/speech-to-text/index.vue

11
frontend/pages/projects/_id/speech-to-text/index.vue

@ -18,6 +18,12 @@
/> />
</template> </template>
<template v-slot:content> <template v-slot:content>
<v-overlay :value="isLoading">
<v-progress-circular
indeterminate
size="64"
/>
</v-overlay>
<audio-viewer <audio-viewer
:source="item.url" :source="item.url"
class="mb-5" class="mb-5"
@ -58,6 +64,7 @@ export default {
}, },
async fetch() { async fetch() {
this.isLoading = true
this.items = await this.$services.example.fetchOne( this.items = await this.$services.example.fetchOne(
this.projectId, this.projectId,
this.$route.query.page, this.$route.query.page,
@ -69,6 +76,7 @@ export default {
await this.autoLabel(item.id) await this.autoLabel(item.id)
} }
await this.list(item.id) await this.list(item.id)
this.isLoading = false
}, },
data() { data() {
@ -76,7 +84,8 @@ export default {
annotations: [], annotations: [],
items: [], items: [],
project: {}, project: {},
enableAutoLabeling: false
enableAutoLabeling: false,
isLoading: false
} }
}, },

Loading…
Cancel
Save