mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1121 Closes #448 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
commit
c54d0ace90
2 changed files with 10 additions and 0 deletions
|
@ -414,6 +414,11 @@ provide(DI.mfmEmojiReactCallback, (reaction) => {
|
||||||
const tab = ref(props.initialTab);
|
const tab = ref(props.initialTab);
|
||||||
const reactionTabType = ref<string | null>(null);
|
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>(() => ({
|
const renotesPagination = computed<Paging>(() => ({
|
||||||
endpoint: 'notes/renotes',
|
endpoint: 'notes/renotes',
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
|
|
@ -419,6 +419,11 @@ provide(DI.mfmEmojiReactCallback, (reaction) => {
|
||||||
const tab = ref(props.initialTab);
|
const tab = ref(props.initialTab);
|
||||||
const reactionTabType = ref<string | null>(null);
|
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>(() => ({
|
const renotesPagination = computed<Paging>(() => ({
|
||||||
endpoint: 'notes/renotes',
|
endpoint: 'notes/renotes',
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
|
Loading…
Add table
Reference in a new issue