repod/src/components/Discover/AddRss.vue

29 lines
524 B
Vue

<template>
<ul>
<NcAppNavigationNewItem :name="t('repod', 'Add a RSS link')"
@new-item="addSubscription">
<template #icon>
<Plus :size="20" />
</template>
</NcAppNavigationNewItem>
</ul>
</template>
<script>
import { NcAppNavigationNewItem } from '@nextcloud/vue'
import Plus from 'vue-material-design-icons/Plus.vue'
export default {
name: 'AddRss',
components: {
NcAppNavigationNewItem,
Plus,
},
methods: {
addSubscription(feedUrl) {
this.$router.push(btoa(feedUrl))
},
},
}
</script>