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.

39 lines
944 B

  1. <template>
  2. <base-card
  3. :title="$t('overview.deleteProjectTitle')"
  4. :agree-text="$t('generic.yes')"
  5. :cancel-text="$t('generic.cancel')"
  6. @agree="$emit('remove')"
  7. @cancel="$emit('cancel')"
  8. >
  9. <template #content>
  10. {{ $t('overview.deleteProjectMessage') }}
  11. <v-list dense>
  12. <v-list-item v-for="(item, i) in selected" :key="i">
  13. <v-list-item-content>
  14. <v-list-item-title>{{ item.name }}</v-list-item-title>
  15. </v-list-item-content>
  16. </v-list-item>
  17. </v-list>
  18. </template>
  19. </base-card>
  20. </template>
  21. <script lang="ts">
  22. import Vue, { PropType } from 'vue'
  23. import BaseCard from '@/components/utils/BaseCard.vue'
  24. import { ProjectDTO } from '~/services/application/project/projectData'
  25. export default Vue.extend({
  26. components: {
  27. BaseCard
  28. },
  29. props: {
  30. selected: {
  31. type: Array as PropType<ProjectDTO[]>,
  32. default: () => []
  33. }
  34. }
  35. })
  36. </script>