feat: show replies on user pages by default
This commit is contained in:
parent
ee08c29549
commit
74021dbc55
2 changed files with 7 additions and 6 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
## 細かい変更点
|
||||
|
||||
- ユーザーページのデフォルトのタブを「投稿と返信」に変更
|
||||
- タイムラインにリプライを表示する設定をデフォルトで有効に
|
||||
- 未読通知のタブをリアクションの通知を表示するタブに変更
|
||||
- 未読のタブ、使ってる人いる?
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<template>
|
||||
<MkStickyContainer>
|
||||
<template #header>
|
||||
<MkTab v-model="include" :class="$style.tab">
|
||||
<option :value="null">{{ i18n.ts.notes }}</option>
|
||||
<option value="replies">{{ i18n.ts.notesAndReplies }}</option>
|
||||
<MkTab v-model="tab" :class="$style.tab">
|
||||
<option :value="null">{{ i18n.ts.notesAndReplies }}</option>
|
||||
<option value="notes">{{ i18n.ts.notes }}</option>
|
||||
<option value="files">{{ i18n.ts.withFiles }}</option>
|
||||
</MkTab>
|
||||
</template>
|
||||
|
@ -22,15 +22,15 @@ const props = defineProps<{
|
|||
user: misskey.entities.UserDetailed;
|
||||
}>();
|
||||
|
||||
const include = ref<string | null>(null);
|
||||
const tab = ref<string | null>(null);
|
||||
|
||||
const pagination = {
|
||||
endpoint: "users/notes" as const,
|
||||
limit: 10,
|
||||
params: computed(() => ({
|
||||
userId: props.user.id,
|
||||
includeReplies: include.value === "replies",
|
||||
withFiles: include.value === "files",
|
||||
includeReplies: tab.value !== "notes",
|
||||
withFiles: tab.value === "files",
|
||||
})),
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue