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

5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <confirm-dialog
  3. title="Remove Member"
  4. message="Are you sure you want to remove these members?"
  5. item-key="username"
  6. :disabled="!isMemberSelected"
  7. :items="selected"
  8. @ok="handleRemoveMember()"
  9. />
  10. </template>
  11. <script>
  12. import { mapState, mapGetters, mapActions } from 'vuex'
  13. import ConfirmDialog from '@/components/organisms/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>