Skip to content

Commit

Permalink
feat: use error component instead of simple elements
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Sep 11, 2020
1 parent 710b276 commit cc46af6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions components/pages/posts/navigation/search/SearchTagCollections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@
<h3>No Tag Collections available</h3>
<nuxt-link to="/premium">Create one?</nuxt-link>
</div>
<Error
:render-borders="false"
error-data="No Tag Collections available"
>
<template v-slot:customAction>
<nuxt-link to="/premium">Create one?</nuxt-link>
</template>
</Error>
</template>
</div>
</div>
Expand All @@ -40,9 +48,15 @@
<script>
import { mapGetters, mapActions } from 'vuex'
import Error from '~/components/utils/Error.vue'
export default {
name: 'SearchBar',
components: {
Error,
},
computed: {
...mapGetters('user', ['getTagCollections']),
},
Expand Down

0 comments on commit cc46af6

Please sign in to comment.