Merge pull request 'Change quoted status link to router-link' (#60) from sfr/pleroma-fe:fix/quote-links into develop

Reviewed-on: AkkomaGang/pleroma-fe#60
This commit is contained in:
floatingghost 2022-07-26 12:45:44 +00:00
commit 0746682763
2 changed files with 4 additions and 14 deletions

View file

@ -14,15 +14,7 @@ const QuoteCard = {
computed: {
...mapGetters([
'mergedConfig'
]),
statusLink () {
return {
name: 'conversation',
params: {
id: this.status.id
}
}
}
])
},
components: {
QuoteCardContent

View file

@ -1,15 +1,13 @@
<template>
<div>
<a
<router-link
class="quote-card"
:href="$router.resolve(statusLink).href"
target="_blank"
rel="noopener"
:to="{ name: 'conversation', params: { id: status.id } }"
>
<QuoteCardContent
:status="status"
/>
</a>
</router-link>
</div>
</template>