Skip to content
Snippets Groups Projects
Commit 158aa35c authored by B. Sc Pius Gyamenah's avatar B. Sc Pius Gyamenah :speech_balloon: Committed by Ron Lucke
Browse files

Biest #924

Closes #1058

Merge request studip/studip!902
parent 54b43da8
No related branches found
No related tags found
No related merge requests found
...@@ -466,6 +466,10 @@ export default { ...@@ -466,6 +466,10 @@ export default {
this.initNewElement(); this.initNewElement();
}, },
async createElement() { 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); this.setShowOverviewElementAddDialog(false);
const file = this.$refs?.upload_image?.files[0]; const file = this.$refs?.upload_image?.files[0];
this.newElement.attributes.purpose = this.newElementPurpose; this.newElement.attributes.purpose = this.newElementPurpose;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment