mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Add RSS link
This commit is contained in:
@@ -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" />
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user