mirror of https://github.com/doccano/doccano.git
pythondatasetnatural-language-processingdata-labelingmachine-learningannotation-tooldatasetsactive-learningtext-annotation
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
998 B
50 lines
998 B
<template>
|
|
<div>
|
|
<v-btn
|
|
:disabled="!total"
|
|
class="text-capitalize"
|
|
color="error"
|
|
@click="dialog=true"
|
|
>
|
|
{{ $t('generic.deleteAll') }}
|
|
</v-btn>
|
|
<v-dialog
|
|
v-model="dialog"
|
|
width="800"
|
|
>
|
|
<confirm-form
|
|
:title="$t('dataset.deleteBulkDocumentsTitle')"
|
|
:message="$t('dataset.deleteBulkDocumentsMessage')"
|
|
:button-true-text="$t('generic.yes')"
|
|
:button-false-text="$t('generic.cancel')"
|
|
@ok="deleteAllDocuments($route.params.id);dialog=false"
|
|
@cancel="dialog=false"
|
|
/>
|
|
</v-dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapActions } from 'vuex'
|
|
import ConfirmForm from '@/components/organisms/utils/ConfirmForm'
|
|
|
|
export default {
|
|
components: {
|
|
ConfirmForm
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
dialog: false
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
...mapState('documents', ['total'])
|
|
},
|
|
|
|
methods: {
|
|
...mapActions('documents', ['deleteAllDocuments'])
|
|
}
|
|
}
|
|
</script>
|