From cfe4ea7d1771aeb453d457c22a2b51e8900a28cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net>
Date: Fri, 21 Jun 2019 14:55:21 +0200
Subject: Fix create file in public list
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 | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

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

diff --git a/src/components/PublicFilesEditor.vue b/src/components/PublicFilesEditor.vue
index e7144a091..4a51f6610 100644
--- a/src/components/PublicFilesEditor.vue
+++ b/src/components/PublicFilesEditor.vue
@@ -21,9 +21,9 @@
   -->
 
 <template>
-	<Modal v-if="active" @close="close" :title="fileName">
+	<modal v-if="active" :title="fileName" @close="close">
 		<editor-wrapper :relative-path="relativePath" :active="active" :share-token="shareToken" />
-	</Modal>
+	</modal>
 </template>
 
 <script>
@@ -49,15 +49,15 @@ export default {
 			default: null
 		}
 	},
+	computed: {
+		fileName() {
+			return this.relativePath.substring(this.relativePath.lastIndexOf('/') + 1)
+		}
+	},
 	methods: {
 		close() {
 			this.active = false
 		}
-	},
-	computed: {
-		fileName() {
-			return this.relativePath.substring(this.relativePath.lastIndexOf('/')+1)
-		}
 	}
 }
 </script>
-- 
cgit v1.2.3

