From 8e11d984a26149cb808c2dad4e1a055003da3cb4 Mon Sep 17 00:00:00 2001 From: buttle Date: Thu, 17 Mar 2022 15:07:52 +0100 Subject: [PATCH] house keeping --- src/components/archiveList.vue | 2 -- src/store.js | 7 ------- 2 files changed, 9 deletions(-) diff --git a/src/components/archiveList.vue b/src/components/archiveList.vue index a567f71..dcb02b3 100644 --- a/src/components/archiveList.vue +++ b/src/components/archiveList.vue @@ -148,7 +148,6 @@ export default { 'column_order': this.columns_order[this.active_column]} this.setSites(payload) if (this.url_search_text) { - console.log('searchig for hash text: '+this.url_search_text) this.setSearchText(this.url_search_text) this.siteSearch() } @@ -169,7 +168,6 @@ export default { return this.columns_order[name] == 'asc' ? faLongArrowAltUp : faLongArrowAltDown }, loadMoreSites() { - console.log('loading') this.incrementPageCount() }, ...mapGetters([ diff --git a/src/store.js b/src/store.js index a3bb5c6..7188e4d 100644 --- a/src/store.js +++ b/src/store.js @@ -54,7 +54,6 @@ const store = new Vuex.Store({ }, actions: { setSites(context, payload) { - //state.sites = _.sortBy(payload.sites, payload.column_name) context.state.sites = payload.sites context.commit("setColumnOrder", {'active_column': payload.active_column, 'column_order': payload.column_order}) @@ -64,16 +63,10 @@ const store = new Vuex.Store({ var api_endpoint = '/api/collections/search?fulltext_search=' axios.post(api_endpoint + context.getters.getSearchText, {}) .then(function (response) { - console.log("remote") - console.log(response.data) var local_search_result = context.getters.searchLocalSiteData - console.log("local") - console.log(local_search_result) var merged_results = Object.assign({}, local_search_result, response.data) - console.log("merged") - console.log(merged_results) context.commit("setFilteredSites", merged_results) context.commit("setColumnOrder", {'active_column': context.state.active_column, 'column_order': context.state.column_order})