1
0
Fork 1
mirror of https://example.com synced 2024-11-23 22:46:40 +09:00

fix show replies toggle not saving

This commit is contained in:
Freeplay 2023-05-15 18:13:59 -04:00
parent 1cc7c3f8dd
commit b38607a694
2 changed files with 14 additions and 1 deletions

View file

@ -240,6 +240,20 @@ const useSystemFont = ref(localStorage.getItem("useSystemFont") != null);
const profile = reactive({
showTimelineReplies: $i?.showTimelineReplies,
});
watch(
() => profile,
() => {
save();
},
{
deep: true,
}
);
function save() {
os.apiWithDialog("i/update", {
showTimelineReplies: !!profile.showTimelineReplies,
});
}
async function reloadAsk() {
const { canceled } = await os.confirm({

View file

@ -237,7 +237,6 @@ function save() {
isBot: !!profile.isBot,
isCat: !!profile.isCat,
speakAsCat: !!profile.speakAsCat,
showTimelineReplies: !!profile.showTimelineReplies,
});
}