update filePreview ContextMenu

This commit is contained in:
Miloš Holba
2020-08-18 19:22:54 +02:00
parent bb22ec1e88
commit 59ca45e9b1
6 changed files with 143 additions and 17 deletions
@@ -137,9 +137,9 @@ export default {
return this.data.type === "video";
},
isAudio() {
let mimetypes = ['mpeg' , "mp3" , 'wan'];
return (
// this.data.type === "audio" &&
this.data.mimetype === "mp3" || "wan" || "mpeg"
mimetypes.includes(this.data.mimetype)
);
},
canEditName() {