diff options
| author | anatawa12 <anatawa12@icloud.com> | 2023-10-21 18:39:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-21 18:39:19 +0900 |
| commit | 722584bf72a1432dbaad8b868c9b44bb5cd7cd30 (patch) | |
| tree | 5b0a396bc1b6fe6befe762606c90c9f7e6f8770d /packages/frontend/src | |
| parent | プロフィールのURL認証をrel=meで可能に (#12100) (diff) | |
| download | misskey-722584bf72a1432dbaad8b868c9b44bb5cd7cd30.tar.gz misskey-722584bf72a1432dbaad8b868c9b44bb5cd7cd30.tar.bz2 misskey-722584bf72a1432dbaad8b868c9b44bb5cd7cd30.zip | |
すべてのフォロー中の人のwithRepliesを変える機能 (#12049)
* feat: endpoint to update all following
* feat(frontend): change show replies for all
* docs(changelog): すでにフォローしたすべての人の返信をTLに追加できるように
* fix: cancel not working
Diffstat (limited to 'packages/frontend/src')
| -rw-r--r-- | packages/frontend/src/pages/settings/general.vue | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index 30443fded6..f186cf2ae3 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -30,6 +30,8 @@ SPDX-License-Identifier: AGPL-3.0-only <MkSwitch v-model="showFixedPostForm">{{ i18n.ts.showFixedPostForm }}</MkSwitch> <MkSwitch v-model="showFixedPostFormInChannel">{{ i18n.ts.showFixedPostFormInChannel }}</MkSwitch> <MkSwitch v-model="defaultWithReplies">{{ i18n.ts.withRepliesByDefaultForNewlyFollowed }}</MkSwitch> + <MkButton danger @click="updateRepliesAll(true)"><i class="ti ti-messages"></i> {{ i18n.ts.showRepliesToOthersInTimelineAll }}</MkButton> + <MkButton danger @click="updateRepliesAll(false)"><i class="ti ti-messages-off"></i> {{ i18n.ts.hideRepliesToOthersInTimelineAll }}</MkButton> <MkFolder> <template #label>{{ i18n.ts.pinnedList }}</template> <!-- 複数ピン止め管理できるようにしたいけどめんどいので一旦ひとつのみ --> @@ -332,6 +334,15 @@ async function setPinnedList() { defaultStore.set('pinnedUserLists', [list]); } +async function updateRepliesAll(withReplies: boolean) { + const { canceled } = os.confirm({ + type: 'warning', + text: withReplies ? i18n.ts.confirmShowRepliesAll : i18n.ts.confirmHideRepliesAll, + }); + if (canceled) return; + await os.api('following/update-all', { withReplies }); +} + function removePinnedList() { defaultStore.set('pinnedUserLists', []); } |