fix: 🚸 cw re below keep cw button

This commit is contained in:
ThatOneCalculator 2023-07-31 20:32:38 -07:00
parent 8a49f8a06c
commit f3ca0a6683
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 7 additions and 7 deletions

View file

@ -71,12 +71,6 @@
{{ i18n.ts.reflectMayTakeTime }}</template {{ i18n.ts.reflectMayTakeTime }}</template
></FormSwitch ></FormSwitch
> >
<FormSwitch v-model="addRe" class="_formBlock"
>{{ i18n.ts.addRe
}}<span class="_beta">{{
i18n.ts.originalFeature
}}</span></FormSwitch
>
<FormSelect v-model="serverDisconnectedBehavior" class="_formBlock"> <FormSelect v-model="serverDisconnectedBehavior" class="_formBlock">
<template #label>{{ i18n.ts.whenServerDisconnected }}</template> <template #label>{{ i18n.ts.whenServerDisconnected }}</template>
@ -363,7 +357,6 @@ const showAdminUpdates = computed(
const showTimelineReplies = computed( const showTimelineReplies = computed(
defaultStore.makeGetterSetter("showTimelineReplies"), defaultStore.makeGetterSetter("showTimelineReplies"),
); );
const addRe = computed(defaultStore.makeGetterSetter("addRe"));
watch(swipeOnDesktop, () => { watch(swipeOnDesktop, () => {
defaultStore.set("swipeOnMobile", true); defaultStore.set("swipeOnMobile", true);

View file

@ -130,6 +130,12 @@
@update:modelValue="save()" @update:modelValue="save()"
>{{ i18n.ts.keepCw }}</FormSwitch >{{ i18n.ts.keepCw }}</FormSwitch
> >
<FormSwitch
v-model="addRe"
class="_formBlock"
@update:modelValue="save()"
>{{ i18n.ts.addRe }}
</FormSwitch>
</div> </div>
</template> </template>
@ -164,6 +170,7 @@ let rememberNoteVisibility = $computed(
defaultStore.makeGetterSetter("rememberNoteVisibility"), defaultStore.makeGetterSetter("rememberNoteVisibility"),
); );
let keepCw = $computed(defaultStore.makeGetterSetter("keepCw")); let keepCw = $computed(defaultStore.makeGetterSetter("keepCw"));
let addRe = $computed(defaultStore.makeGetterSetter("addRe"));
function save() { function save() {
os.api("i/update", { os.api("i/update", {