fix: regression with addrss

This commit is contained in:
Michel Roux 2024-01-11 22:29:14 +01:00
parent 615f9e0c49
commit 0c2154a2ab

View File

@ -1,7 +1,7 @@
<template>
<ul class="bar">
<NcAppNavigationNewItem :name="t('repod', 'Add a RSS link')"
@new-item="$router.push(encodeUrl(feedUrl))">
@new-item="addSubscription">
<template #icon>
<Plus :size="20" />
</template>
@ -21,7 +21,9 @@ export default {
Plus,
},
methods: {
encodeUrl,
addSubscription(feedUrl) {
this.$router.push(encodeUrl(feedUrl))
},
},
}
</script>