fix(NcVue): 🦺 use new NcAppNavigationList
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 33s
repod / nodejs (push) Successful in 1m19s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-03-01 09:52:49 +01:00
parent 9ccd237f80
commit 5a510016a7
2 changed files with 8 additions and 6 deletions

View File

@ -1,21 +1,22 @@
<template>
<ul>
<NcAppNavigationList>
<NcAppNavigationNewItem :name="t('repod', 'Add a RSS link')" @new-item="addSubscription">
<template #icon>
<Plus :size="20" />
</template>
</NcAppNavigationNewItem>
</ul>
</NcAppNavigationList>
</template>
<script>
import { NcAppNavigationNewItem } from '@nextcloud/vue'
import { NcAppNavigationList, NcAppNavigationNewItem } from '@nextcloud/vue'
import Plus from 'vue-material-design-icons/Plus.vue'
import { encodeUrl } from '../../utils/url.js'
export default {
name: 'AddRss',
components: {
NcAppNavigationList,
NcAppNavigationNewItem,
Plus,
},

View File

@ -10,11 +10,11 @@
</NcAppNavigationNew>
</router-link>
<Loading v-if="loading" />
<ul v-if="!loading">
<NcAppNavigationList v-if="!loading">
<Item v-for="subscriptionUrl of subscriptions"
:key="subscriptionUrl"
:url="subscriptionUrl" />
</ul>
</NcAppNavigationList>
</NcAppContentList>
</template>
<template #footer>
@ -29,7 +29,7 @@
</template>
<script>
import { NcAppContentList, NcAppNavigationNew, NcAppNavigationSettings } from '@nextcloud/vue'
import { NcAppContentList, NcAppNavigationList, NcAppNavigationNew, NcAppNavigationSettings } from '@nextcloud/vue'
import AppNavigation from '../Atoms/AppNavigation.vue'
import Export from '../Settings/Export.vue'
import Filters from '../Settings/Filters.vue'
@ -50,6 +50,7 @@ export default {
Item,
Loading,
NcAppContentList,
NcAppNavigationList,
NcAppNavigationNew,
NcAppNavigationSettings,
Plus,