From 8e33ef909659cbee39e2a31dc2ee80ef60168805 Mon Sep 17 00:00:00 2001 From: lesion Date: Tue, 31 May 2022 15:15:41 +0200 Subject: [PATCH] cleaner rss --- components/Nav.vue | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/components/Nav.vue b/components/Nav.vue index 891d3cc7..353a3f9b 100644 --- a/components/Nav.vue +++ b/components/Nav.vue @@ -21,7 +21,7 @@ v-icon(v-text='mdiLogin') client-only - v-menu(v-if='$auth.loggedIn' offset-y) + v-menu(v-if='$auth.loggedIn' offset-y eager) template(v-slot:activator="{ on, attrs }") v-btn(icon v-bind='attrs' v-on='on' title='Menu' aria-label='Menu') v-icon(v-text='mdiDotsVertical') @@ -48,7 +48,7 @@ v-icon(v-text='mdiDotsVertical') - v-btn(icon target='_blank' :href='feedLink' title='RSS' aria-label='RSS') + v-btn(icon target='_blank' :href='`${settings.baseurl}/feed/rss`' title='RSS' aria-label='RSS') v-icon(color='orange' v-text='mdiRss') @@ -64,25 +64,7 @@ export default { return { mdiPlus, mdiShareVariant, mdiLogout, mdiLogin, mdiDotsVertical, mdiAccount, mdiCog, mdiRss } }, mixins: [clipboard], - computed: { - ...mapState(['filters', 'settings']), - feedLink () { - const tags = this.filters.tags && this.filters.tags.map(encodeURIComponent).join(',') - const places = this.filters.places && this.filters.places.join(',') - let query = '' - if (tags || places) { - query = '?' - if (tags) { - query += 'tags=' + tags - if (places) { query += '&places=' + places } - } else { - query += 'places=' + places - } - } - - return `${this.settings.baseurl}/feed/rss${query}` - }, - }, + computed: mapState(['settings']), methods: { logout () { this.$root.$message('common.logout_ok')