From e05626f0c8b8c81ec2592e7bf63b3861924a2df6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net>
Date: Tue, 2 Jul 2019 16:25:57 +0200
Subject: Split out helper functions and add syntax detection
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Julius Härtl <jus@bitgrid.net>
---
 src/components/PublicFilesEditor.vue | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/components/PublicFilesEditor.vue')

diff --git a/src/components/PublicFilesEditor.vue b/src/components/PublicFilesEditor.vue
index 6991ad37c..6e8cb3b73 100644
--- a/src/components/PublicFilesEditor.vue
+++ b/src/components/PublicFilesEditor.vue
@@ -23,7 +23,7 @@
 <template>
 	<modal v-if="active" :title="fileName" @close="close">
 		<editor-wrapper :file-id="fileId" :relative-path="relativePath" :active="active"
-			:share-token="shareToken" />
+			:share-token="shareToken" :mime="mimeType" />
 	</modal>
 </template>
 
@@ -52,6 +52,10 @@ export default {
 		shareToken: {
 			type: String,
 			default: null
+		},
+		mimeType: {
+			type: String,
+			default: null
 		}
 	},
 	computed: {
-- 
cgit v1.2.3

