summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-07-24 02:15:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-24 02:15:40 +0900
commit5d847f9808132490c764b0c3116734ef6572896e (patch)
tree8135bf1651ddd171b040143463da451d460cac22 /src/client
parentFix #5210 (diff)
downloadsharkey-5d847f9808132490c764b0c3116734ef6572896e.tar.gz
sharkey-5d847f9808132490c764b0c3116734ef6572896e.tar.bz2
sharkey-5d847f9808132490c764b0c3116734ef6572896e.zip
Fix: some post form errors (#5212)
* Fix: type mismatch in post-form-attaches * Fix: 'this is null' in post-form-window
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/post-form-attaches.vue2
-rw-r--r--src/client/app/desktop/views/components/post-form-window.vue4
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 37422ba108..e051b6a808 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 8dd7c584a2..78e69049a1 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 @@
<span class="icon" v-if="geo"><fa icon="map-marker-alt"/></span>
<span v-if="!reply">{{ $t('note') }}</span>
<span v-if="reply">{{ $t('reply') }}</span>
- <span class="count" v-if="files.length != 0">{{ this.$t('attaches').replace('{}', files.length) }}</span>
- <span class="count" v-if="uploadings.length != 0">{{ this.$t('uploading-media').replace('{}', uploadings.length) }}<mk-ellipsis/></span>
+ <span class="count" v-if="files.length != 0">{{ $t('attaches').replace('{}', files.length) }}</span>
+ <span class="count" v-if="uploadings.length != 0">{{ $t('uploading-media').replace('{}', uploadings.length) }}<mk-ellipsis/></span>
</span>
</template>