diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-01-03 12:34:08 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-01-03 12:34:08 +0900 |
| commit | 562cd6ad0bdd8a929372125f2fb2e31f889f036b (patch) | |
| tree | b40974476a782b83fe44bca19ccfdeae7ede8731 /src/client | |
| parent | Update file-type requirement from 10.6.0 to 10.7.0 (#3815) (diff) | |
| download | sharkey-562cd6ad0bdd8a929372125f2fb2e31f889f036b.tar.gz sharkey-562cd6ad0bdd8a929372125f2fb2e31f889f036b.tar.bz2 sharkey-562cd6ad0bdd8a929372125f2fb2e31f889f036b.zip | |
Improve readability
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/desktop/views/components/post-form.vue | 1 | ||||
| -rw-r--r-- | src/client/app/desktop/views/components/renote-form.vue | 13 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index a971e3d057..2971768104 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -77,6 +77,7 @@ import extractMentions from '../../../../../misc/extract-mentions'; export default Vue.extend({ i18n: i18n('desktop/views/components/post-form.vue'), + components: { XDraggable, MkVisibilityChooser diff --git a/src/client/app/desktop/views/components/renote-form.vue b/src/client/app/desktop/views/components/renote-form.vue index e6a09c3eea..d8f38bedfc 100644 --- a/src/client/app/desktop/views/components/renote-form.vue +++ b/src/client/app/desktop/views/components/renote-form.vue @@ -21,7 +21,14 @@ import i18n from '../../../i18n'; export default Vue.extend({ i18n: i18n('desktop/views/components/renote-form.vue'), - props: ['note'], + + props: { + note: { + type: Object, + required: true + } + }, + data() { return { wait: false, @@ -29,6 +36,7 @@ export default Vue.extend({ visibility: this.$store.state.settings.defaultNoteVisibility }; }, + methods: { ok(v: string) { this.wait = true; @@ -44,9 +52,11 @@ export default Vue.extend({ this.wait = false; }); }, + cancel() { this.$emit('canceled'); }, + onQuote() { this.quote = true; @@ -54,6 +64,7 @@ export default Vue.extend({ (this.$refs.form as any).focus(); }); }, + onChildFormPosted() { this.$emit('posted'); } |