Change the available timelines
This commit is contained in:
parent
e9376cc65c
commit
854b26750b
1 changed files with 12 additions and 4 deletions
|
@ -2,9 +2,15 @@
|
||||||
<MkStickyContainer>
|
<MkStickyContainer>
|
||||||
<template #header>
|
<template #header>
|
||||||
<MkTab v-model="include" :class="$style.tab">
|
<MkTab v-model="include" :class="$style.tab">
|
||||||
<option :value="null">{{ i18n.ts.notes }}</option>
|
<!-- TODO: Localize these values -->
|
||||||
<option value="replies">{{ i18n.ts.notesAndReplies }}</option>
|
<!-- {{ i18n.ts.notes }} -->
|
||||||
<option value="files">{{ i18n.ts.withFiles }}</option>
|
<option value="posts">Posts</option>
|
||||||
|
<!-- {{ i18n.ts.notesAndReplies }} -->
|
||||||
|
<option :value="null">Replies</option>
|
||||||
|
<!-- None -->
|
||||||
|
<option value="boosts">Boosts</option>
|
||||||
|
<!-- {{ i18n.ts.withFiles }} -->
|
||||||
|
<option value="files">Files</option>
|
||||||
</MkTab>
|
</MkTab>
|
||||||
</template>
|
</template>
|
||||||
<XNotes :no-gap="true" :pagination="pagination" />
|
<XNotes :no-gap="true" :pagination="pagination" />
|
||||||
|
@ -30,8 +36,10 @@ const pagination = {
|
||||||
limit: 10,
|
limit: 10,
|
||||||
params: computed(() => ({
|
params: computed(() => ({
|
||||||
userId: props.user.id,
|
userId: props.user.id,
|
||||||
includeReplies: include.value === "replies",
|
includeReplies: include.value === null,
|
||||||
withFiles: include.value === "files",
|
withFiles: include.value === "files",
|
||||||
|
includeRenotes: include.value === "boosts",
|
||||||
|
renotesOnly: include.value === "boosts",
|
||||||
})),
|
})),
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue