mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-01-16 09:54:44 +00:00
Merge pull request #2091 from Human-Connection/1851-tags-clickable
1851 tags clickable
This commit is contained in:
commit
558f0b7485
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user