Browse Source

Merge pull request #1959 from doccano/enhancement/928

Show status on dataset page
pull/1963/head
Hiroki Nakayama 2 years ago
committed by GitHub
parent
commit
3da9371d17
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 0 deletions
  1. 10
      frontend/components/example/AudioList.vue
  2. 10
      frontend/components/example/DocumentList.vue
  3. 10
      frontend/components/example/ImageList.vue

10
frontend/components/example/AudioList.vue

@ -29,6 +29,11 @@
filled
/>
</template>
<template #[`item.isConfirmed`]="{ item }">
<v-chip :color="item.isConfirmed ? 'success' : 'warning'" text small>
{{ item.isConfirmed ? 'Finished' : 'In progress' }}
</v-chip>
</template>
<template #[`item.fileUrl`]="{ item }">
<audio controls :src="item.fileUrl" class="mt-2">
Your browser does not support the
@ -95,6 +100,11 @@ export default Vue.extend({
value: 'id',
sortable: false
},
{
text: 'Status',
value: 'isConfirmed',
sortable: false
},
{
text: 'Audio',
value: 'fileUrl',

10
frontend/components/example/DocumentList.vue

@ -29,6 +29,11 @@
filled
/>
</template>
<template #[`item.isConfirmed`]="{ item }">
<v-chip :color="item.isConfirmed ? 'success' : 'warning'" text small>
{{ item.isConfirmed ? 'Finished' : 'In progress' }}
</v-chip>
</template>
<template #[`item.text`]="{ item }">
<span class="d-flex d-sm-none">{{ item.text | truncate(50) }}</span>
<span class="d-none d-sm-flex">{{ item.text | truncate(200) }}</span>
@ -93,6 +98,11 @@ export default Vue.extend({
value: 'id',
sortable: false
},
{
text: 'Status',
value: 'isConfirmed',
sortable: false
},
{
text: this.$t('dataset.text'),
value: 'text',

10
frontend/components/example/ImageList.vue

@ -29,6 +29,11 @@
filled
/>
</template>
<template #[`item.isConfirmed`]="{ item }">
<v-chip :color="item.isConfirmed ? 'success' : 'warning'" text small>
{{ item.isConfirmed ? 'Finished' : 'In progress' }}
</v-chip>
</template>
<template #[`item.fileUrl`]="{ item }">
<v-img
:src="item.fileUrl"
@ -99,6 +104,11 @@ export default Vue.extend({
value: 'id',
sortable: false
},
{
text: 'Status',
value: 'isConfirmed',
sortable: false
},
{
text: 'Image',
value: 'fileUrl',

Loading…
Cancel
Save