fix: UI-imperfecties & diverse bugs omtrent het verwijderen en editeren van leerpaden opgelost
This commit is contained in:
parent
9400b7f33c
commit
9a58126c7c
6 changed files with 126 additions and 28 deletions
|
@ -2,6 +2,7 @@
|
|||
import type { LearningObject } from '@/data-objects/learning-objects/learning-object';
|
||||
import UsingQueryResult from '@/components/UsingQueryResult.vue';
|
||||
import LearningObjectContentView from '../../learning-paths/learning-object/content/LearningObjectContentView.vue';
|
||||
import ButtonWithConfirmation from '@/components/ButtonWithConfirmation.vue';
|
||||
import { useDeleteLearningObjectMutation, useLearningObjectHTMLQuery } from '@/queries/learning-objects';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
|
@ -41,7 +42,13 @@
|
|||
</using-query-result>
|
||||
</template>
|
||||
<template v-slot:actions>
|
||||
<v-btn text="Delete" @click="deleteLearningObject()"></v-btn>
|
||||
<button-with-confirmation
|
||||
@confirm="deleteLearningObject"
|
||||
prepend-icon="mdi mdi-delete"
|
||||
color="red"
|
||||
:text="t('delete')"
|
||||
:confirmQueryText="t('learningObjectDeleteQuery')"
|
||||
/>
|
||||
</template>
|
||||
</v-card>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue