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