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.
35 lines
741 B
35 lines
741 B
<template>
|
|
<confirm-dialog
|
|
title="Delete Label"
|
|
message="Are you sure you want to remove these labels from this project?"
|
|
item-key="text"
|
|
:disabled="!isLabelSelected"
|
|
:items="selected"
|
|
@ok="handleDeleteLabel()"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapGetters, mapActions } from 'vuex'
|
|
import ConfirmDialog from '@/components/organisms/ConfirmDialog'
|
|
|
|
export default {
|
|
components: {
|
|
ConfirmDialog
|
|
},
|
|
|
|
computed: {
|
|
...mapState('labels', ['selected']),
|
|
...mapGetters('labels', ['isLabelSelected'])
|
|
},
|
|
|
|
methods: {
|
|
...mapActions('labels', ['deleteLabel']),
|
|
|
|
handleDeleteLabel() {
|
|
const projectId = this.$route.params.id
|
|
this.deleteLabel(projectId)
|
|
}
|
|
}
|
|
}
|
|
</script>
|