Add a fifth, default option "Everything"
This commit is contained in:
parent
308b30972e
commit
7ecac0983e
1 changed files with 5 additions and 3 deletions
|
@ -3,10 +3,12 @@
|
|||
<template #header>
|
||||
<MkTab v-model="include" :class="$style.tab">
|
||||
<!-- TODO: Localize these values -->
|
||||
<!-- None -->
|
||||
<option :value="null">Everything</option>
|
||||
<!-- {{ i18n.ts.notes }} -->
|
||||
<option value="posts">Posts</option>
|
||||
<!-- {{ i18n.ts.notesAndReplies }} -->
|
||||
<option :value="null">Replies</option>
|
||||
<option value="replies">Replies</option>
|
||||
<!-- None -->
|
||||
<option value="boosts">Boosts</option>
|
||||
<!-- {{ i18n.ts.withFiles }} -->
|
||||
|
@ -36,9 +38,9 @@ const pagination = {
|
|||
limit: 10,
|
||||
params: computed(() => ({
|
||||
userId: props.user.id,
|
||||
includeReplies: include.value === null,
|
||||
includeReplies: include.value === "replies" || include.value === null,
|
||||
withFiles: include.value === "files",
|
||||
includeRenotes: include.value === "boosts",
|
||||
includeRenotes: include.value === "boosts" || include.value === null,
|
||||
renotesOnly: include.value === "boosts",
|
||||
})),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue