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
744 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <confirm-dialog
  3. :disabled="!isMemberSelected"
  4. :items="selected"
  5. @ok="handleRemoveMember()"
  6. title="Remove Member"
  7. message="Are you sure you want to remove these members?"
  8. item-key="username"
  9. />
  10. </template>
  11. <script>
  12. import { mapState, mapGetters, mapActions } from 'vuex'
  13. import ConfirmDialog from '@/components/organisms/utils/ConfirmDialog'
  14. export default {
  15. components: {
  16. ConfirmDialog
  17. },
  18. computed: {
  19. ...mapState('members', ['selected']),
  20. ...mapGetters('members', ['isMemberSelected'])
  21. },
  22. methods: {
  23. ...mapActions('members', ['removeMember']),
  24. handleRemoveMember() {
  25. const projectId = this.$route.params.id
  26. this.removeMember(projectId)
  27. }
  28. }
  29. }
  30. </script>