repod/src/components/Discover/AddRss.vue

29 lines
524 B
Vue
Raw Normal View History

2023-07-07 14:35:14 +00:00
<template>
<ul>
2024-01-10 14:25:54 +00:00
<NcAppNavigationNewItem :name="t('repod', 'Add a RSS link')"
2023-07-08 22:07:21 +00:00
@new-item="addSubscription">
2023-07-07 14:35:14 +00:00
<template #icon>
2023-07-07 16:38:53 +00:00
<Plus :size="20" />
2023-07-07 14:35:14 +00:00
</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: {
2023-08-24 22:08:31 +00:00
addSubscription(feedUrl) {
this.$router.push(btoa(feedUrl))
2023-07-08 22:07:21 +00:00
},
2023-07-07 14:35:14 +00:00
},
}
</script>