Skip to content
Snippets Groups Projects
Commit e3161ffe authored by \nrlucke's avatar \nrlucke
Browse files

fix #4

parent 94c968d3
No related branches found
No related tags found
No related merge requests found
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
<option value="web"><translate>Web-Adresse</translate></option> <option value="web"><translate>Web-Adresse</translate></option>
</select> </select>
</label> </label>
<label v-if="currentSource === 'web'"> <label v-show="currentSource === 'web'">
<translate>URL</translate> <translate>URL</translate>
<input type="text" v-model="currentWebUrl" /> <input type="text" v-model="currentWebUrl" />
</label> </label>
<label v-if="currentSource === 'studip'"> <label v-show="currentSource === 'studip'">
<translate>Datei</translate> <translate>Datei</translate>
<courseware-file-chooser <courseware-file-chooser
v-model="currentFileId" v-model="currentFileId"
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
attributes.payload = {}; attributes.payload = {};
attributes.payload.title = this.currentTitle; attributes.payload.title = this.currentTitle;
attributes.payload.source = this.currentSource; attributes.payload.source = this.currentSource;
if (this.currentSource === 'studip' && this.currentFile !== undefined) { if (this.currentSource === 'studip' && this.currentFile !== undefined && this.currentFileId !== '') {
attributes.payload.file_id = this.currentFile.id; attributes.payload.file_id = this.currentFile.id;
attributes.payload.web_url = ''; attributes.payload.web_url = '';
} else if (this.currentSource === 'web' && this.currentWebUrl !== '') { } else if (this.currentSource === 'web' && this.currentWebUrl !== '') {
...@@ -184,7 +184,10 @@ export default { ...@@ -184,7 +184,10 @@ export default {
this.currentAspect = this.aspect; this.currentAspect = this.aspect;
this.currentContextMenu = this.contextMenu; this.currentContextMenu = this.contextMenu;
this.currentAutoplay = this.autoplay; this.currentAutoplay = this.autoplay;
this.loadFile(); if (this.fileId !== '') {
this.loadFile();
}
}, },
async loadFile() { async loadFile() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment