diff --git a/client/src/components/chains/common/FilterByTags.vue b/client/src/components/chains/common/FilterByTags.vue index 0db2a7a..f6aa1fb 100644 --- a/client/src/components/chains/common/FilterByTags.vue +++ b/client/src/components/chains/common/FilterByTags.vue @@ -11,8 +11,6 @@ @@ -27,37 +25,16 @@ {{$t('profile.showAllTags')}} - diff --git a/client/src/components/chains/profile/ProfileFilterByTags.vue b/client/src/components/chains/profile/ProfileFilterByTags.vue index 71b9ea7..20272e2 100644 --- a/client/src/components/chains/profile/ProfileFilterByTags.vue +++ b/client/src/components/chains/profile/ProfileFilterByTags.vue @@ -9,9 +9,14 @@ const TOP_LIMIT = 10 import FilterByTags from '../../../components/chains/common/FilterByTags.vue' import EventBus from '../../../event-bus' -const parser = require('@oneplace/blockchains-api/parser') + export default { name: 'ProfileFilterByTags', + props: { + tags: { + type: Array + } + }, components: { FilterByTags }, @@ -38,14 +43,6 @@ export default { change({ include, exclude }) { EventBus.$emit('PROFILE:FILTER:CHANGE', { include, exclude }) } - }, - computed: { - tags() { - const posts = this.$store.state.profile.posts.collection - const tags = parser.getTagsFromPosts(posts) - tags.sort((a, b) => b.count - a.count) - return tags - } } } diff --git a/client/src/containers/chains/Feed.vue b/client/src/containers/chains/Feed.vue index 2823a2f..ae08c56 100644 --- a/client/src/containers/chains/Feed.vue +++ b/client/src/containers/chains/Feed.vue @@ -15,7 +15,8 @@
@@ -24,11 +25,15 @@