Prevent editing of existing assignment blocks

This commit is contained in:
Ramon Wenger 2022-10-05 16:35:35 +02:00
parent 35c7da24b2
commit cb924a8d52
1 changed files with 4 additions and 2 deletions

View File

@ -57,6 +57,7 @@
const TextForm = () => import(/* webpackChunkName: "content-forms" */'@/components/content-forms/TipTap.vue');
const SubtitleForm = () => import(/* webpackChunkName: "content-forms" */'@/components/content-forms/SubtitleForm');
// readonly blocks
const Assignment = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/assignment/Assignment');
const SurveyBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/SurveyBlock');
const Solution = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/Solution');
const ImageBlock = () => import(/* webpackChunkName: "content-forms" */'@/components/content-blocks/ImageBlock');
@ -108,7 +109,8 @@
ModuleRoomSlug,
CmsDocumentBlock,
InfogramBlock,
ThinglinkBlock
ThinglinkBlock,
Assignment
},
computed: {
@ -171,7 +173,7 @@
};
case 'assignment':
return {
component: 'assignment-form',
component: element.id ? 'assignment' : 'assignment-form', // prevent editing of existing assignments
title: 'Aufgabe & Ergebnis',
icon: 'speech-bubble-icon',
};