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