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

<template>
<confirm-dialog
title="Delete Project"
message="Are you sure you want to delete these projects?"
item-key="name"
:disabled="!isProjectSelected"
:items="selected"
@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', ['isProjectSelected'])
},
methods: {
handleDeleteProject() {
this.$store.dispatch('projects/deleteProject')
}
}
}
</script>