Change quoted status link to router-link
This commit is contained in:
parent
c372d05b25
commit
0888b9462f
2 changed files with 4 additions and 14 deletions
|
@ -14,15 +14,7 @@ const QuoteCard = {
|
|||
computed: {
|
||||
...mapGetters([
|
||||
'mergedConfig'
|
||||
]),
|
||||
statusLink () {
|
||||
return {
|
||||
name: 'conversation',
|
||||
params: {
|
||||
id: this.status.id
|
||||
}
|
||||
}
|
||||
}
|
||||
])
|
||||
},
|
||||
components: {
|
||||
QuoteCardContent
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue