Create new collections from my collections view

This commit is contained in:
2026-04-03 15:51:18 +02:00
parent b1bad80426
commit b48ab1e4de
11 changed files with 185 additions and 27 deletions

View File

@@ -3,6 +3,7 @@ import { ref, computed } from 'vue'
import { getCollections } from './api.js'
import CollectionListElement from './CollectionListElement.vue'
import Pagination from './Pagination.vue'
import AddCollection from './AddCollection.vue'
const limit = 5
const pageNumber = ref(1)
@@ -34,6 +35,7 @@ function pageChange(newPageNumber) {
<div>
<div v-if="error">{{ $t('bookbrowser.error', { error: error.message }) }}</div>
<div v-else-if="data">
<AddCollection @created="fetchData" />
<div class="collectionslist">
<div class="my-2" v-for="collection in data.collections" :key="collection.id">
<CollectionListElement v-bind="collection" />