From 684cfe236bbb4125941e4f0032acf5c03f771da6 Mon Sep 17 00:00:00 2001 From: buttle Date: Wed, 24 Nov 2021 11:03:36 +0100 Subject: [PATCH] changes accordion layout --- src/components/archiveList.vue | 43 +++++++++++++--------------------- src/store.js | 2 +- 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/src/components/archiveList.vue b/src/components/archiveList.vue index 8ce0e2c..6c88852 100644 --- a/src/components/archiveList.vue +++ b/src/components/archiveList.vue @@ -19,14 +19,11 @@ This file is part of ArciveList.
-
    +
    -
    @@ -139,11 +131,8 @@ export default { return { columns_order: {'title': 'asc', 'artist': 'asc', 'collection': 'asc', 'date': 'asc'}, active_column: 'date', - //faSortAlphaUp: faSortAlphaUp, - //faSortAlphaDown: faSortAlphaDown, faLongArrowAltUp: faLongArrowAltUp, faLongArrowAltDown: faLongArrowAltDown, - //faArrowsV: faArrowsV, }; }, created() { @@ -179,7 +168,7 @@ export default { this.incrementPageCount() }, ...mapGetters([ - 'getDisplayedSites', 'getPageSize', 'getPageCount' + 'getSitesForDisplay', 'getPageCount' ]), ...mapMutations([ 'setSites', 'setColumnOrder', 'incrementPageCount' @@ -190,10 +179,10 @@ export default { }, computed: { sites: function() { - return this.getDisplayedSites().slice(0, this.getPageCount() * this.page_size) + return this.getSitesForDisplay().slice(0, this.getPageCount() * this.page_size) }, more_sites_to_display: function() { - if (this.getDisplayedSites().length > this.getPageCount() * this.page_size) { + if (this.getSitesForDisplay().length > this.getPageCount() * this.page_size) { return true } return false diff --git a/src/store.js b/src/store.js index 094afec..318f8df 100644 --- a/src/store.js +++ b/src/store.js @@ -52,7 +52,7 @@ const store = new Vuex.Store({ }, }, getters: { - getDisplayedSites: state => { + getSitesForDisplay: state => { if (state.search_text === "") { return state.sites }