diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-21 03:45:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-21 03:45:07 +0900 |
| commit | 3cc2049fb3985bf141bc74d410764bbb802caa50 (patch) | |
| tree | ca04cf16747f0b58b345ce79518f11e0aed7b04d /src/client/app/mobile | |
| parent | Fix (diff) | |
| download | sharkey-3cc2049fb3985bf141bc74d410764bbb802caa50.tar.gz sharkey-3cc2049fb3985bf141bc74d410764bbb802caa50.tar.bz2 sharkey-3cc2049fb3985bf141bc74d410764bbb802caa50.zip | |
Reduce initial bundle size
Diffstat (limited to 'src/client/app/mobile')
| -rw-r--r-- | src/client/app/mobile/views/components/post-form.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index 326ff57c1f..3297dad277 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -22,7 +22,7 @@ <input v-show="useCw" ref="cw" v-model="cw" :placeholder="$t('annotations')" v-autocomplete="{ model: 'cw' }"> <textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="{ model: 'text' }"></textarea> <x-post-form-attaches class="attaches" :files="files"/> - <mk-poll-editor v-if="poll" ref="poll" @destroyed="poll = false" @updated="onPollUpdate()"/> + <x-poll-editor v-if="poll" ref="poll" @destroyed="poll = false" @updated="onPollUpdate()"/> <mk-uploader ref="uploader" @uploaded="attachMedia" @change="onChangeUploadings"/> <footer> <button class="upload" @click="chooseFile"><fa icon="upload"/></button> @@ -64,7 +64,8 @@ import XPostFormAttaches from '../../../common/views/components/post-form-attach export default Vue.extend({ i18n: i18n('mobile/views/components/post-form.vue'), components: { - XPostFormAttaches + XPostFormAttaches, + XPollEditor: () => import('../../../common/views/components/poll-editor.vue').then(m => m.default) }, props: { |