Prevent editing of existing assignment blocks
This commit is contained in:
parent
35c7da24b2
commit
cb924a8d52
|
|
@ -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',
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue