mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
34 lines
742 B
34 lines
742 B
<template>
|
|
<confirm-dialog
|
|
:disabled="!isDeletable"
|
|
:items="selected"
|
|
:title="$t('overview.deleteProjectTitle')"
|
|
:message="$t('overview.deleteProjectMessage')"
|
|
:button-true-text="$t('generic.yes')"
|
|
:button-false-text="$t('generic.cancel')"
|
|
item-key="name"
|
|
@ok="handleDeleteProject"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapGetters } from 'vuex'
|
|
import ConfirmDialog from '@/components/organisms/utils/ConfirmDialog'
|
|
|
|
export default {
|
|
components: {
|
|
ConfirmDialog
|
|
},
|
|
|
|
computed: {
|
|
...mapState('projects', ['selected']),
|
|
...mapGetters('projects', ['isDeletable'])
|
|
},
|
|
|
|
methods: {
|
|
handleDeleteProject() {
|
|
this.$store.dispatch('projects/deleteProject')
|
|
}
|
|
}
|
|
}
|
|
</script>
|