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.
37 lines
827 B
37 lines
827 B
<template>
|
|
<confirm-dialog
|
|
:disabled="!isMemberSelected"
|
|
:items="selected"
|
|
:title="$t('members.removeMember')"
|
|
:message="$t('members.removePrompt')"
|
|
:button-true-text="$t('generic.yes')"
|
|
:button-false-text="$t('generic.cancel')"
|
|
item-key="username"
|
|
@ok="handleRemoveMember()"
|
|
/>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState, mapGetters, mapActions } from 'vuex'
|
|
import ConfirmDialog from '@/components/organisms/utils/ConfirmDialog'
|
|
|
|
export default {
|
|
components: {
|
|
ConfirmDialog
|
|
},
|
|
|
|
computed: {
|
|
...mapState('members', ['selected']),
|
|
...mapGetters('members', ['isMemberSelected'])
|
|
},
|
|
|
|
methods: {
|
|
...mapActions('members', ['removeMember']),
|
|
|
|
handleRemoveMember() {
|
|
const projectId = this.$route.params.id
|
|
this.removeMember(projectId)
|
|
}
|
|
}
|
|
}
|
|
</script>
|