Create new collections from my collections view
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user