forked from AkkomaGang/akkoma-fe
Change quoted status link to router-link
This commit is contained in:
parent
a2541bb4e0
commit
86fc043e54
2 changed files with 4 additions and 14 deletions
|
@ -14,15 +14,7 @@ const QuoteCard = {
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
'mergedConfig'
|
'mergedConfig'
|
||||||
]),
|
])
|
||||||
statusLink () {
|
|
||||||
return {
|
|
||||||
name: 'conversation',
|
|
||||||
params: {
|
|
||||||
id: this.status.id
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
QuoteCardContent
|
QuoteCardContent
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a
|
<router-link
|
||||||
class="quote-card"
|
class="quote-card"
|
||||||
:href="$router.resolve(statusLink).href"
|
:to="{ name: 'conversation', params: { id: status.id } }"
|
||||||
target="_blank"
|
|
||||||
rel="noopener"
|
|
||||||
>
|
>
|
||||||
<QuoteCardContent
|
<QuoteCardContent
|
||||||
:status="status"
|
:status="status"
|
||||||
/>
|
/>
|
||||||
</a>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue