diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-27 17:38:02 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-01-27 17:38:02 +0900 |
| commit | 779bd244a64e93a6d22dddf876f2611e7e4451ef (patch) | |
| tree | ae77817670c85302cb1413f4250291bda33b5d46 /packages/client/src | |
| parent | Update CHANGELOG.md (diff) | |
| download | misskey-779bd244a64e93a6d22dddf876f2611e7e4451ef.tar.gz misskey-779bd244a64e93a6d22dddf876f2611e7e4451ef.tar.bz2 misskey-779bd244a64e93a6d22dddf876f2611e7e4451ef.zip | |
chore: fix instant form handling
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/components/post-form.vue | 4 | ||||
| -rw-r--r-- | packages/client/src/pages/about-misskey.vue | 1 | ||||
| -rw-r--r-- | packages/client/src/pages/share.vue | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/packages/client/src/components/post-form.vue b/packages/client/src/components/post-form.vue index ed78c5a3fb..2eda97e14d 100644 --- a/packages/client/src/components/post-form.vue +++ b/packages/client/src/components/post-form.vue @@ -102,7 +102,7 @@ const props = withDefaults(defineProps<{ initialLocalOnly?: boolean; initialVisibleUsers?: misskey.entities.User[]; initialNote?: misskey.entities.Note; - share?: boolean; + instant?: boolean; fixed?: boolean; autofocus?: boolean; }>(), { @@ -641,7 +641,7 @@ onMounted(() => { nextTick(() => { // 書きかけの投稿を復元 - if (!props.share && !props.mention && !props.specified) { + if (!props.instant && !props.mention && !props.specified) { const draft = JSON.parse(localStorage.getItem('drafts') || '{}')[draftKey]; if (draft) { text = draft.data.text; diff --git a/packages/client/src/pages/about-misskey.vue b/packages/client/src/pages/about-misskey.vue index 8119f33051..f887e29cc0 100644 --- a/packages/client/src/pages/about-misskey.vue +++ b/packages/client/src/pages/about-misskey.vue @@ -182,6 +182,7 @@ function gravity() { function iLoveMisskey() { os.post({ initialText: 'I $[jelly ❤] #Misskey', + instant: true, }); } diff --git a/packages/client/src/pages/share.vue b/packages/client/src/pages/share.vue index 5df6256fb2..4d77de5819 100644 --- a/packages/client/src/pages/share.vue +++ b/packages/client/src/pages/share.vue @@ -5,7 +5,7 @@ <XPostForm v-if="state === 'writing'" fixed - :share="true" + :instant="true" :initial-text="initialText" :initial-visibility="visibility" :initial-files="files" |