1
0
forked from mirror/misskey

Fix: some post form errors (#5212)

* Fix: type mismatch in post-form-attaches

* Fix: 'this is null' in post-form-window
This commit is contained in:
MeiMei 2019-07-24 02:15:40 +09:00 committed by syuilo
parent ac914af9c3
commit 5d847f9808
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ export default Vue.extend({
required: true
},
detachMediaFn: {
type: Object,
type: Function,
required: false
}
},

View File

@ -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>