forked from Mirrors/elk
chore: update entries
This commit is contained in:
parent
6d2f70b2ba
commit
4ab1de45f4
3 changed files with 7 additions and 7 deletions
|
@ -17,6 +17,7 @@ cacheAccount(account)
|
|||
shrink
|
||||
overflow-hidden
|
||||
:to="getAccountRoute(account)"
|
||||
@click="$rememberAccountPosition(getAccountRoute(account).fullPath)"
|
||||
/>
|
||||
<div h-full p1 shrink-0>
|
||||
<AccountFollowButton :account="account" />
|
||||
|
|
|
@ -4,17 +4,15 @@ import type { mastodon } from 'masto'
|
|||
const { notification } = defineProps<{
|
||||
notification: mastodon.v1.Notification
|
||||
}>()
|
||||
|
||||
const nuxt = useNuxtApp()
|
||||
function click() {
|
||||
nuxt.$rememberAccountPosition(getAccountRoute(notification.account).fullPath)
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<article flex flex-col relative>
|
||||
<template v-if="notification.type === 'follow'">
|
||||
<NuxtLink :to="getAccountRoute(notification.account)" @click="click">
|
||||
<NuxtLink
|
||||
:to="getAccountRoute(notification.account)"
|
||||
@click="$rememberAccountPosition(getAccountRoute(notification.account).fullPath)"
|
||||
>
|
||||
<div
|
||||
flex items-center absolute
|
||||
ps-3 pe-4 inset-is-0
|
||||
|
|
|
@ -42,6 +42,7 @@ const statusRoute = $computed(() => getStatusRoute(status))
|
|||
|
||||
const el = ref<HTMLElement>()
|
||||
const router = useRouter()
|
||||
const nuxtApp = useNuxtApp()
|
||||
|
||||
function onclick(evt: MouseEvent | KeyboardEvent) {
|
||||
const path = evt.composedPath() as HTMLElement[]
|
||||
|
@ -56,7 +57,7 @@ function go(evt: MouseEvent | KeyboardEvent) {
|
|||
window.open(statusRoute.href)
|
||||
}
|
||||
else {
|
||||
useNuxtApp().$rememberStatusPosition(status)
|
||||
nuxtApp.$rememberStatusPosition(status)
|
||||
cacheStatus(status)
|
||||
router.push(statusRoute)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue