diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-21 15:55:21 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-06-21 15:55:21 +0300 |
commit | cfe4ea7d1771aeb453d457c22a2b51e8900a28cd (patch) | |
tree | 32dbb7e380fc8ae5806289eb5d0e7c3321b69b30 /src/components/PublicFilesEditor.vue | |
parent | d4a82113a05fd2d2ab4f9e2117878b631453d4a0 (diff) |
Fix create file in public list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/components/PublicFilesEditor.vue')
-rw-r--r-- | src/components/PublicFilesEditor.vue | 14 |
1 files changed, 7 insertions, 7 deletions
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> |