mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 20:16:57 +00:00
auto-select the first page of reactions on the note "reactions" pgae
This commit is contained in:
parent
99bf315351
commit
0a1e10e18b
2 changed files with 10 additions and 0 deletions
|
@ -414,6 +414,11 @@ provide(DI.mfmEmojiReactCallback, (reaction) => {
|
|||
const tab = ref(props.initialTab);
|
||||
const reactionTabType = ref<string | null>(null);
|
||||
|
||||
// Auto-select the first page of reactions
|
||||
watch(appearNote, n => {
|
||||
reactionTabType.value ??= Object.keys(n.reactions)[0] ?? null;
|
||||
}, { immediate: true });
|
||||
|
||||
const renotesPagination = computed<Paging>(() => ({
|
||||
endpoint: 'notes/renotes',
|
||||
limit: 10,
|
||||
|
|
|
@ -420,6 +420,11 @@ provide(DI.mfmEmojiReactCallback, (reaction) => {
|
|||
const tab = ref(props.initialTab);
|
||||
const reactionTabType = ref<string | null>(null);
|
||||
|
||||
// Auto-select the first page of reactions
|
||||
watch(appearNote, n => {
|
||||
reactionTabType.value ??= Object.keys(n.reactions)[0] ?? null;
|
||||
}, { immediate: true });
|
||||
|
||||
const renotesPagination = computed<Paging>(() => ({
|
||||
endpoint: 'notes/renotes',
|
||||
limit: 10,
|
||||
|
|
Loading…
Add table
Reference in a new issue