mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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.
60 lines
1.1 KiB
60 lines
1.1 KiB
<template>
|
|
<base-card title="Delete Project">
|
|
<template #content>
|
|
Are you sure you want to delete these projects?
|
|
<v-list dense>
|
|
<v-list-item v-for="(item, i) in selected" :key="i">
|
|
<v-list-item-content>
|
|
<v-list-item-title>{{ item.name }}</v-list-item-title>
|
|
</v-list-item-content>
|
|
</v-list-item>
|
|
</v-list>
|
|
</template>
|
|
<template #actions>
|
|
<v-btn
|
|
class="text-capitalize"
|
|
text
|
|
color="primary"
|
|
data-test="cancel-button"
|
|
@click="cancel"
|
|
>
|
|
Cancel
|
|
</v-btn>
|
|
<v-btn
|
|
class="text-none"
|
|
text
|
|
data-test="delete-button"
|
|
@click="deleteProject"
|
|
>
|
|
Yes, delete
|
|
</v-btn>
|
|
</template>
|
|
</base-card>
|
|
</template>
|
|
|
|
<script>
|
|
import BaseCard from '@/components/molecules/BaseCard'
|
|
|
|
export default {
|
|
components: {
|
|
BaseCard
|
|
},
|
|
|
|
props: {
|
|
selected: {
|
|
type: Array,
|
|
default: () => [],
|
|
required: true
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
cancel() {
|
|
this.$emit('close')
|
|
},
|
|
deleteProject() {
|
|
this.$emit('delete')
|
|
}
|
|
}
|
|
}
|
|
</script>
|