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.

40 lines
949 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 type { PropType } from 'vue'
  23. import Vue from 'vue'
  24. import BaseCard from '@/components/utils/BaseCard.vue'
  25. import { Project } from '~/domain/models/project/project'
  26. export default Vue.extend({
  27. components: {
  28. BaseCard
  29. },
  30. props: {
  31. selected: {
  32. type: Array as PropType<Project[]>,
  33. default: () => []
  34. }
  35. }
  36. })
  37. </script>