fix: 🐛 do not show add if already subscribed
This commit is contained in:
parent
7a4bbd8e47
commit
691ee72ac5
@ -19,7 +19,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<NcActionButton
|
<NcActionButton
|
||||||
v-if="!isSubscribed"
|
v-if="!isSubscribed(feed.link)"
|
||||||
:name="t('repod', 'Subscribe')"
|
:name="t('repod', 'Subscribe')"
|
||||||
:title="t('repod', 'Subscribe')"
|
:title="t('repod', 'Subscribe')"
|
||||||
@click="addSubscription(feed.link)">
|
@click="addSubscription(feed.link)">
|
||||||
@ -89,6 +89,9 @@ export default {
|
|||||||
|
|
||||||
this.$store.dispatch('subscriptions/fetch')
|
this.$store.dispatch('subscriptions/fetch')
|
||||||
},
|
},
|
||||||
|
isSubscribed(url) {
|
||||||
|
return this.$store.state.subscriptions.subscriptions.includes(url)
|
||||||
|
},
|
||||||
search: debounce(async function value() {
|
search: debounce(async function value() {
|
||||||
try {
|
try {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
Loading…
Reference in New Issue
Block a user