forked from Mirrors/elk
chore: include remember position
This commit is contained in:
parent
7c355eeec7
commit
a2a6b84ba7
1 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
import type { mastodon } from 'masto'
|
import type { mastodon } from 'masto'
|
||||||
|
|
||||||
export const navigateToStatus = ({ status, focusReply = false }: { status: mastodon.v1.Status; focusReply?: boolean }) => navigateTo({ path: getStatusRoute(status).href, state: { focusReply } })
|
export const navigateToStatus = ({ status, focusReply = false }: { status: mastodon.v1.Status; focusReply?: boolean }) => {
|
||||||
|
useNuxtApp().$rememberStatusPosition(status)
|
||||||
|
navigateTo({ path: getStatusRoute(status).href, state: { focusReply } })
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue