From 5d847f9808132490c764b0c3116734ef6572896e Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Wed, 24 Jul 2019 02:15:40 +0900 Subject: [PATCH] Fix: some post form errors (#5212) * Fix: type mismatch in post-form-attaches * Fix: 'this is null' in post-form-window --- src/client/app/common/views/components/post-form-attaches.vue | 2 +- src/client/app/desktop/views/components/post-form-window.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/app/common/views/components/post-form-attaches.vue b/src/client/app/common/views/components/post-form-attaches.vue index 37422ba10..e051b6a80 100644 --- a/src/client/app/common/views/components/post-form-attaches.vue +++ b/src/client/app/common/views/components/post-form-attaches.vue @@ -36,7 +36,7 @@ export default Vue.extend({ required: true }, detachMediaFn: { - type: Object, + type: Function, required: false } }, diff --git a/src/client/app/desktop/views/components/post-form-window.vue b/src/client/app/desktop/views/components/post-form-window.vue index 8dd7c584a..78e69049a 100644 --- a/src/client/app/desktop/views/components/post-form-window.vue +++ b/src/client/app/desktop/views/components/post-form-window.vue @@ -5,8 +5,8 @@ {{ $t('note') }} {{ $t('reply') }} - {{ this.$t('attaches').replace('{}', files.length) }} - {{ this.$t('uploading-media').replace('{}', uploadings.length) }} + {{ $t('attaches').replace('{}', files.length) }} + {{ $t('uploading-media').replace('{}', uploadings.length) }}