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 @@ ...@@ -11,7 +11,7 @@
<template #content> <template #content>
<div v-if="currentTitle !== '' && currentURL" class="cw-block-title">{{ currentTitle }}</div> <div v-if="currentTitle !== '' && currentURL" class="cw-block-title">{{ currentTitle }}</div>
<video <video
v-if="currentURL" v-show="currentURL"
:src="currentURL" :src="currentURL"
:type="currentFile !== '' ? currentFile.mime_type : ''" :type="currentFile !== '' ? currentFile.mime_type : ''"
controls controls
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
containerId: this.block.relationships.container.data.id, containerId: this.block.relationships.container.data.id,
}); });
}, },
initCurrentData() { async initCurrentData() {
this.currentSource = this.source; this.currentSource = this.source;
this.currentTitle = this.title; this.currentTitle = this.title;
this.currentWebUrl = this.webUrl; this.currentWebUrl = this.webUrl;
...@@ -185,10 +185,8 @@ export default { ...@@ -185,10 +185,8 @@ export default {
this.currentContextMenu = this.contextMenu; this.currentContextMenu = this.contextMenu;
this.currentAutoplay = this.autoplay; this.currentAutoplay = this.autoplay;
if (this.fileId !== '') { if (this.fileId !== '') {
this.loadFile(); await this.loadFile();
} }
}, },
async loadFile() { async loadFile() {
const id = this.currentFileId; const id = this.currentFileId;
...@@ -212,9 +210,8 @@ export default { ...@@ -212,9 +210,8 @@ export default {
this.currentFileId = file.id; this.currentFileId = file.id;
}, },
contextHandler(e) { contextHandler(e) {
if (this.currentContextMenu === '0') { if (this.currentContextMenu === 'disabled') {
e.preventDefault(); e.preventDefault();
console.log('context menu disabled');
} }
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment