Add RSS link

This commit is contained in:
root
2021-11-03 15:30:04 +05:30
parent 724dfd62d7
commit 32f36a16f1
2 changed files with 13 additions and 1 deletions
+8 -1
View File
@@ -1,7 +1,14 @@
<template>
<v-container fluid>
<h3 class="text-h4 justify-center">{{ $t('titles.' + feedName) }}</h3>
<v-btn outlined color="primary" class="mt-2" v-if="$store.getters['auth/isCurrentlyAuthenticated']" link to="/subscriptions">Subscriptions</v-btn>
<v-btn outlined color="primary" class="mt-2" v-if="$store.getters['auth/isCurrentlyAuthenticated']" link to="/subscriptions">Your Subscriptions</v-btn>
<v-btn
outlined color="primary" class="mt-2 ml-2"
v-if="$store.getters['auth/isCurrentlyAuthenticated']"
link :href="$store.getters['prefs/apiUrl'] + '/feed/rss?authToken=' + $store.getters['auth/authToken']"
>
<v-icon>mdi-rss</v-icon> RSS of Your Subscriptions
</v-btn>
<v-divider class="my-4" />
+5
View File
@@ -42,6 +42,11 @@ const AuthenticationStore = {
getters: {
isCurrentlyAuthenticated (state, getters, rootState, rootGetters) {
return state.authStateByInstance[rootGetters['prefs/apiUrl']]?.isAuthenticated
},
authToken (state, getters, rootState, rootGetters) {
const authState = state.authStateByInstance[rootGetters['prefs/apiUrl']] ?? {}
return authState.authToken
}
},