refactor(publish): extract to composables
This commit is contained in:
parent
df37e7c4de
commit
0ef99f2c8e
5 changed files with 190 additions and 122 deletions
|
@ -63,3 +63,12 @@ export function getStatusInReplyToRoute(status: mastodon.v1.Status) {
|
|||
},
|
||||
})
|
||||
}
|
||||
|
||||
export const navigateToStatus = ({ status, focusReply = false }: {
|
||||
status: mastodon.v1.Status
|
||||
focusReply?: boolean
|
||||
}) =>
|
||||
navigateTo({
|
||||
path: getStatusRoute(status).href,
|
||||
state: { focusReply },
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue