From bdbecce61a3ffe2fdb9775a1392b7536629b89ec Mon Sep 17 00:00:00 2001 From: naskya Date: Mon, 2 Oct 2023 00:21:30 +0900 Subject: [PATCH] chore: move showFeaturedNotesInTimeline setting to appropriate section --- .../client/src/pages/settings/general.vue | 21 +++++++++++++++++ packages/client/src/pages/settings/other.vue | 23 ------------------- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/packages/client/src/pages/settings/general.vue b/packages/client/src/pages/settings/general.vue index a6ef6d45ba..0ecb649607 100644 --- a/packages/client/src/pages/settings/general.vue +++ b/packages/client/src/pages/settings/general.vue @@ -80,6 +80,19 @@ {{ i18n.ts.reflectMayTakeTime }} + + {{ i18n.ts.showFeaturedNotesInTimeline }} + + {{ i18n.ts.detectPostLanguage }} @@ -391,6 +404,14 @@ const openServerInfo = computed( defaultStore.makeGetterSetter("openServerInfo"), ); +function onChangeInjectFeaturedNote(v) { + os.api("i/update", { + injectFeaturedNote: v, + }).then((i) => { + $i!.injectFeaturedNote = i.injectFeaturedNote; + }); +} + watch(swipeOnDesktop, () => { defaultStore.set("swipeOnMobile", true); }); diff --git a/packages/client/src/pages/settings/other.vue b/packages/client/src/pages/settings/other.vue index 6b42cdce75..0fd44a08ae 100644 --- a/packages/client/src/pages/settings/other.vue +++ b/packages/client/src/pages/settings/other.vue @@ -1,17 +1,5 @@