aboutsummaryrefslogtreecommitdiff
path: root/src/site
diff options
context:
space:
mode:
Diffstat (limited to 'src/site')
-rw-r--r--src/site/components/grid/Grid.vue14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/site/components/grid/Grid.vue b/src/site/components/grid/Grid.vue
index 15ff5fd..b6615be 100644
--- a/src/site/components/grid/Grid.vue
+++ b/src/site/components/grid/Grid.vue
@@ -33,7 +33,7 @@
<!-- TODO: Implement pagination -->
<WaterfallItem v-for="(item, index) in gridFiles"
- :key="index"
+ :key="item.id"
:width="width"
move-class="item-move">
<template v-if="isPublic">
@@ -93,10 +93,6 @@
</template>
</WaterfallItem>
</Waterfall>
- <button
- v-if="moreFiles"
- class="button is-primary"
- @click="loadMoreFilesWaterfall">Load more</button>
</template>
<div v-else>
<b-table
@@ -254,16 +250,10 @@ export default {
return require('@/assets/images/blank.png');
},
gridFiles() {
- return this.files.slice(this.filesOffsetWaterfall, this.filesOffsetEndWaterfall);
+ return this.files;
},
- moreFiles() {
- return this.files.length > this.filesOffsetEndWaterfall;
- }
},
methods: {
- loadMoreFilesWaterfall() {
- this.filesOffsetEndWaterfall = this.filesOffsetEndWaterfall + this.filesPerPageWaterfall;
- },
async search() {
const data = await this.$search.do(this.searchTerm, [
'name',