repod/src/components/Discover/AddRss.vue

36 lines
601 B
Vue
Raw Normal View History

2023-07-07 14:35:14 +00:00
<template>
<ul>
2023-07-08 22:07:21 +00:00
<NcAppNavigationNewItem :loading="loading"
2023-08-22 22:30:38 +00:00
:name="t('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,
},
2023-07-08 22:07:21 +00:00
data() {
return {
loading: false,
feedUrl: '',
}
},
2023-07-07 14:35:14 +00:00
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>