fix: featured note is currently disabled

This commit is contained in:
naskya 2023-10-02 00:29:57 +09:00
parent bdbecce61a
commit 3c931989c5
No known key found for this signature in database
GPG key ID: 164DFF24E2D40139

View file

@ -80,13 +80,13 @@
{{ i18n.ts.reflectMayTakeTime }}</template
></FormSwitch
>
<FormSwitch
<!-- <FormSwitch
v-model="$i.injectFeaturedNote"
class="_formBlock"
@update:modelValue="onChangeInjectFeaturedNote"
>
{{ i18n.ts.showFeaturedNotesInTimeline }}
</FormSwitch>
</FormSwitch> -->
<!-- <FormSwitch v-model="reportError" class="_formBlock"
>{{ i18n.ts.sendErrorReports
}}<template #caption>{{
@ -404,13 +404,14 @@ const openServerInfo = computed(
defaultStore.makeGetterSetter("openServerInfo"),
);
function onChangeInjectFeaturedNote(v) {
os.api("i/update", {
injectFeaturedNote: v,
}).then((i) => {
$i!.injectFeaturedNote = i.injectFeaturedNote;
});
}
// This feature (along with injectPromo) is currently disabled
// function onChangeInjectFeaturedNote(v) {
// os.api("i/update", {
// injectFeaturedNote: v,
// }).then((i) => {
// $i!.injectFeaturedNote = i.injectFeaturedNote;
// });
// }
watch(swipeOnDesktop, () => {
defaultStore.set("swipeOnMobile", true);