Merge pull request #2091 from Human-Connection/1851-tags-clickable

1851 tags clickable
This commit is contained in:
mattwr18 2019-11-06 09:59:11 +01:00 committed by GitHub
commit 558f0b7485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
<template>
<ds-tag>#{{ id }}</ds-tag>
<ds-tag>
<nuxt-link :to="hashtagUrl">#{{ id }}</nuxt-link>
</ds-tag>
</template>
<script>
@ -8,5 +10,10 @@ export default {
props: {
id: { type: String, required: true },
},
computed: {
hashtagUrl() {
return `/?hashtag=${this.id}`
},
},
}
</script>