mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
fix show replies toggle not saving
This commit is contained in:
parent
cb145cd96e
commit
9142b3efdd
@ -240,6 +240,20 @@ const useSystemFont = ref(localStorage.getItem("useSystemFont") != null);
|
|||||||
const profile = reactive({
|
const profile = reactive({
|
||||||
showTimelineReplies: $i?.showTimelineReplies,
|
showTimelineReplies: $i?.showTimelineReplies,
|
||||||
});
|
});
|
||||||
|
watch(
|
||||||
|
() => profile,
|
||||||
|
() => {
|
||||||
|
save();
|
||||||
|
},
|
||||||
|
{
|
||||||
|
deep: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
function save() {
|
||||||
|
os.apiWithDialog("i/update", {
|
||||||
|
showTimelineReplies: !!profile.showTimelineReplies,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
async function reloadAsk() {
|
async function reloadAsk() {
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
|
@ -237,7 +237,6 @@ function save() {
|
|||||||
isBot: !!profile.isBot,
|
isBot: !!profile.isBot,
|
||||||
isCat: !!profile.isCat,
|
isCat: !!profile.isCat,
|
||||||
speakAsCat: !!profile.speakAsCat,
|
speakAsCat: !!profile.speakAsCat,
|
||||||
showTimelineReplies: !!profile.showTimelineReplies,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user