repod/src/components/Discover/AddRss.vue
Michel Roux 515f00fffc
All checks were successful
repod / xml (push) Successful in 31s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 2m21s
repod / release (push) Has been skipped
style: class useless
2024-01-14 11:22:52 +01:00

35 lines
627 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'
import { encodeUrl } from '../../utils/url.js'
export default {
name: 'AddRss',
components: {
NcAppNavigationNewItem,
Plus,
},
methods: {
addSubscription(feedUrl) {
this.$router.push(encodeUrl(feedUrl))
},
},
}
</script>
<style scoped>
ul {
margin-top: 2rem;
}
</style>