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.
32 lines
657 B
32 lines
657 B
<template>
|
|
<confirm-dialog
|
|
:disabled="!isProjectSelected"
|
|
:items="selected"
|
|
@ok="handleDeleteProject"
|
|
title="Delete Project"
|
|
message="Are you sure you want to delete these projects?"
|
|
item-key="name"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapGetters } from 'vuex'
|
|
import ConfirmDialog from '@/components/organisms/utils/ConfirmDialog'
|
|
|
|
export default {
|
|
components: {
|
|
ConfirmDialog
|
|
},
|
|
|
|
computed: {
|
|
...mapState('projects', ['selected']),
|
|
...mapGetters('projects', ['isProjectSelected'])
|
|
},
|
|
|
|
methods: {
|
|
handleDeleteProject() {
|
|
this.$store.dispatch('projects/deleteProject')
|
|
}
|
|
}
|
|
}
|
|
</script>
|