enhance(frontend): TLの返信表示オプションを記憶するように

Resolve #12016
This commit is contained in:
syuilo
2023-10-13 16:49:56 +09:00
parent 04908bc90c
commit 096fa16c4c
3 changed files with 20 additions and 1 deletions

View File

@@ -62,11 +62,15 @@ let queue = $ref(0);
let srcWhenNotSignin = $ref(isLocalTimelineAvailable ? 'local' : 'global');
const src = $computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin), set: (x) => saveSrc(x) });
const withRenotes = $ref(true);
const withReplies = $ref(false);
const withReplies = $ref($i ? defaultStore.state.tlWithReplies : false);
const onlyFiles = $ref(false);
watch($$(src), () => queue = 0);
watch($$(withReplies), (x) => {
if ($i) defaultStore.set('tlWithReplies', x);
});
function queueUpdated(q: number): void {
queue = q;
}