@@ -115,7 +115,10 @@ export default {
return {
title: this.$pgettext('Head/Favorites/Title', 'Your Favorites')
}
- }
+ },
+ hasFavorites () {
+ return this.$store.state.favorites.count > 0
+ },
},
methods: {
updateQueryString: function() {
diff --git a/front/src/components/library/Radios.vue b/front/src/components/library/Radios.vue
index 9b2f7bf82..9f59db514 100644
--- a/front/src/components/library/Radios.vue
+++ b/front/src/components/library/Radios.vue
@@ -10,7 +10,7 @@
Instance radios
-
+
@@ -144,7 +144,13 @@ export default {
searchPlaceholder,
title
}
- }
+ },
+ isAuthenticated () {
+ return this.$store.state.auth.authenticated
+ },
+ hasFavorites () {
+ return this.$store.state.favorites.count > 0
+ },
},
methods: {
updateQueryString: _.debounce(function() {