fix: 🐛 the #list slot breaks navigation on AppContent
This commit is contained in:
parent
19c56ef31d
commit
fb7780fead
@ -1,9 +1,6 @@
|
||||
<template>
|
||||
<NcAppContent :class="{ episode }">
|
||||
<slot />
|
||||
<template #list>
|
||||
<slot name="list" />
|
||||
</template>
|
||||
</NcAppContent>
|
||||
</template>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<NcAppNavigationList>
|
||||
<NcAppNavigationList class="list">
|
||||
<NcAppNavigationNewItem
|
||||
:name="t('repod', 'Add a RSS link')"
|
||||
@new-item="(url) => $router.push(toFeedUrl(url))">
|
||||
@ -29,7 +29,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
ul {
|
||||
.list {
|
||||
margin-top: 2rem;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,7 +1,4 @@
|
||||
export const encodeUrl = (url) => encodeURIComponent(btoa(url))
|
||||
export const decodeUrl = (url) => atob(decodeURIComponent(url))
|
||||
export const toFeedUrl = (url) => `/feed/${encodeUrl(url)}`
|
||||
export const filenameFromUrl = (str) => {
|
||||
const url = new URL(str)
|
||||
return url.pathname.split('/').pop()
|
||||
}
|
||||
export const filenameFromUrl = (url) => new URL(url).pathname.split('/').pop()
|
||||
|
Loading…
Reference in New Issue
Block a user