Skip to content
Snippets Groups Projects
Commit 7ebe7912 authored by B. Sc Pius Gyamenah's avatar B. Sc Pius Gyamenah :speech_balloon: Committed by Jan-Hendrik Willms
Browse files

Biest #924

Closes #1058

Merge request studip/studip!902
parent 23b223bd
No related branches found
No related tags found
No related merge requests found
......@@ -466,6 +466,10 @@ export default {
this.initNewElement();
},
async createElement() {
if (this.newElement.attributes.title == null ) {
this.companionInfo({ info: this.$gettext('Bitte geben Sie einen Titel für das Lernmaterial ein') });
return false;
}
this.setShowOverviewElementAddDialog(false);
const file = this.$refs?.upload_image?.files[0];
this.newElement.attributes.purpose = this.newElementPurpose;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment