From e12e5216221ad00135b63ec90ff84e5c106e1e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Holba?= Date: Fri, 21 Aug 2020 17:32:36 +0200 Subject: [PATCH] add audio mimetypes : mp4, flac --- public/mix-manifest.json | 8 +++----- resources/js/components/FilesView/FileItemList.vue | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/public/mix-manifest.json b/public/mix-manifest.json index d02f2004..43616055 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,9 +1,7 @@ { "/js/main.js": "/js/main.js", "/css/app.css": "/css/app.css", - "/js/main.e84b67db399d8c1f57c0.hot-update.js": "/js/main.e84b67db399d8c1f57c0.hot-update.js", - "/js/main.30de109047f5120e380a.hot-update.js": "/js/main.30de109047f5120e380a.hot-update.js", - "/js/main.bbd04c575f17bb289f46.hot-update.js": "/js/main.bbd04c575f17bb289f46.hot-update.js", - "/js/main.308c88e8a6e67cf82734.hot-update.js": "/js/main.308c88e8a6e67cf82734.hot-update.js", - "/js/main.0691e1e55aa442a30017.hot-update.js": "/js/main.0691e1e55aa442a30017.hot-update.js" + "/js/main.792dafb651f57548b990.hot-update.js": "/js/main.792dafb651f57548b990.hot-update.js", + "/js/main.43320a4a3fcb14b31611.hot-update.js": "/js/main.43320a4a3fcb14b31611.hot-update.js", + "/js/main.cfddc9ce030f2554c4ae.hot-update.js": "/js/main.cfddc9ce030f2554c4ae.hot-update.js" } diff --git a/resources/js/components/FilesView/FileItemList.vue b/resources/js/components/FilesView/FileItemList.vue index bc966f7a..99b9ff98 100644 --- a/resources/js/components/FilesView/FileItemList.vue +++ b/resources/js/components/FilesView/FileItemList.vue @@ -137,9 +137,9 @@ export default { return this.data.type === "video"; }, isAudio() { - let mimetypes = ['mpeg' , "mp3" , 'wan']; + let mimetypes = ['mpeg' , "mp3" , 'mp4', 'wan' ,'flac']; return ( - mimetypes.includes(this.data.mimetype) + mimetypes.includes(this.data.mimetype) && this.data.type === 'audio' ); }, canEditName() {