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

fix #65

parent e3161ffe
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
<template #content>
<div v-if="currentTitle !== '' && currentURL" class="cw-block-title">{{ currentTitle }}</div>
<video
v-if="currentURL"
v-show="currentURL"
:src="currentURL"
:type="currentFile !== '' ? currentFile.mime_type : ''"
controls
......@@ -176,7 +176,7 @@ export default {
containerId: this.block.relationships.container.data.id,
});
},
initCurrentData() {
async initCurrentData() {
this.currentSource = this.source;
this.currentTitle = this.title;
this.currentWebUrl = this.webUrl;
......@@ -185,10 +185,8 @@ export default {
this.currentContextMenu = this.contextMenu;
this.currentAutoplay = this.autoplay;
if (this.fileId !== '') {
this.loadFile();
await this.loadFile();
}
},
async loadFile() {
const id = this.currentFileId;
......@@ -212,9 +210,8 @@ export default {
this.currentFileId = file.id;
},
contextHandler(e) {
if (this.currentContextMenu === '0') {
if (this.currentContextMenu === 'disabled') {
e.preventDefault();
console.log('context menu disabled');
}
},
},
......
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