1
0
Эх сурвалжийг харах

Add missing mime types in admin settings view (#5934)

Co-authored-by: daniel <danielsupernault@gmail.com>
Nicolas Jeannerod 1 сар өмнө
parent
commit
382502b28c

+ 9 - 5
resources/assets/components/admin/AdminSettings.vue

@@ -1021,16 +1021,20 @@
                         res += 'image/webp,'
                     }
 
-                    if(this.mediaTypes.mp4) {
-                        res += 'video/mp4,'
+                    if(this.mediaTypes.avif) {
+                        res += 'image/avif,'
                     }
 
                     if(this.mediaTypes.heic) {
                         res += 'image/heic,'
                     }
 
-                    if(this.mediaTypes.avif) {
-                        res += 'image/avif,'
+                    if(this.mediaTypes.mp4) {
+                        res += 'video/mp4,'
+                    }
+
+                    if(this.mediaTypes.mov) {
+                        res += 'video/mov,'
                     }
 
                     if(res.endsWith(',')) {
@@ -1096,7 +1100,7 @@
                 if(types && types.length) {
                     types.forEach((type) => {
                         let mime = type.split('/')[1];
-                        if(['jpeg', 'png', 'gif', 'webp', 'mp4', 'avif'].includes(mime)) {
+                        if(['jpeg', 'png', 'gif', 'webp', 'avif', 'heic', 'mp4', 'mov'].includes(mime)) {
                             this.mediaTypes[mime] = true;
                         }
                     })