From 1aeae6217e1906f94109491882fa723284f0ccb0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Oct 2023 16:12:01 +0900 Subject: [PATCH] chore(frontend): tweak settings ui --- packages/frontend/src/pages/settings/general.vue | 11 ----------- packages/frontend/src/pages/settings/other.vue | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index 46b56bc860..9508e04e1b 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -30,8 +30,6 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.showFixedPostForm }} {{ i18n.ts.showFixedPostFormInChannel }} {{ i18n.ts.withRepliesByDefaultForNewlyFollowed }} - {{ i18n.ts.showRepliesToOthersInTimelineAll }} - {{ i18n.ts.hideRepliesToOthersInTimelineAll }} @@ -336,15 +334,6 @@ 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', []); } diff --git a/packages/frontend/src/pages/settings/other.vue b/packages/frontend/src/pages/settings/other.vue index e2fc021099..43a8632130 100644 --- a/packages/frontend/src/pages/settings/other.vue +++ b/packages/frontend/src/pages/settings/other.vue @@ -73,6 +73,13 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.registry }} + + +
+ {{ i18n.ts.showRepliesToOthersInTimelineAll }} + {{ i18n.ts.hideRepliesToOthersInTimelineAll }} +
+
@@ -138,6 +145,15 @@ async function reloadAsk() { unisonReload(); } +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 }); +} + watch([ enableCondensedLineForAcct, ], async () => {