diff --git a/frontend/src/views/pages/checklists/CategoryDetail.vue b/frontend/src/views/pages/checklists/CategoryDetail.vue index 910dabde..def9ac34 100644 --- a/frontend/src/views/pages/checklists/CategoryDetail.vue +++ b/frontend/src/views/pages/checklists/CategoryDetail.vue @@ -2,6 +2,7 @@ import ChecklistService from '@/service/ChecklistService'; import ChecklistItemUpdate from '@/components/dialogs/ChecklistItemUpdate.vue'; import ChecklistItemCreate from '@/components/dialogs/ChecklistItemCreate.vue'; +import markdown from '@/utils/markdown'; export default { name: 'CategoryDetail', @@ -10,6 +11,7 @@ export default { return { categoryId: this.$route.params.categoryId, service: new ChecklistService(), + loading: false, model: {}, breadcrumbs: [ { @@ -36,9 +38,18 @@ export default { }, methods: { getCategory() { - this.service.getCategory(this.$api, this.categoryId).then((response) => { - this.model = response.data; - }); + this.loading = true; + this.service + .getCategory(this.$api, this.categoryId) + .then((response) => { + this.model = response.data; + }) + .finally(() => { + this.loading = false; + }); + }, + renderMarkdown(text) { + return markdown.renderMarkdown(text); }, confirmDialogDelete() { this.$confirm.require({ @@ -106,26 +117,30 @@ export default {
- - - + +
- \ No newline at end of file +