repod/src/components/Discover/AddRss.vue
Michel Roux 029b7bf399
All checks were successful
repod / xml (push) Successful in 13s
repod / php (push) Successful in 44s
repod / nodejs (push) Successful in 1m49s
fix: increase margin on add rss
2024-01-10 17:56:00 +01:00

35 lines
592 B
Vue

<template>
<ul class="bar">
<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>
<style scoped>
.bar {
margin-top: 2rem;
}
</style>