From 86af0d9fc37a9b18c349298207ea113b7236166f Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Wed, 4 Sep 2019 10:27:46 -0300 Subject: [PATCH] Change plugin author to Tainacan. Passes include_disabled properly to filters api. --- src/admin/pages/lists/items-page.vue | 2 +- src/js/event-bus-search.js | 1 - src/js/store/modules/filter/actions.js | 4 ++-- src/tainacan.php | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/admin/pages/lists/items-page.vue b/src/admin/pages/lists/items-page.vue index ed0a51719..6cbd7b7ab 100644 --- a/src/admin/pages/lists/items-page.vue +++ b/src/admin/pages/lists/items-page.vue @@ -1201,7 +1201,7 @@ collectionId: this.collectionId, isRepositoryLevel: this.isRepositoryLevel, isContextEdit: !this.isOnTheme, - includeDisabled: 'no', + includeDisabled: false, }) .then((resp) => { resp.request diff --git a/src/js/event-bus-search.js b/src/js/event-bus-search.js index e1a777b26..22d1ff8a8 100644 --- a/src/js/event-bus-search.js +++ b/src/js/event-bus-search.js @@ -336,7 +336,6 @@ export default { this.$emit( 'hasToPrepareMetadataAndFilters', to); } else { this.$emit( 'isLoadingItems', true); - // Cancels previous Request if (this.searchCancel != undefined) this.searchCancel.cancel('Item search Canceled.'); diff --git a/src/js/store/modules/filter/actions.js b/src/js/store/modules/filter/actions.js index 43cb61836..f78c6b78d 100644 --- a/src/js/store/modules/filter/actions.js +++ b/src/js/store/modules/filter/actions.js @@ -177,7 +177,7 @@ export const fetchRepositoryCollectionFilters = ({ dispatch, commit } ) => { for (let collection of collections ) { let endpoint = ''; - endpoint = '/collection/' + collection.id + '/filters/?nopaging=1&include_disabled=no'; + endpoint = '/collection/' + collection.id + '/filters/?nopaging=1&include_disabled=false'; axios.tainacan.get(endpoint) .then((resp) => { @@ -224,7 +224,7 @@ export const fetchTaxonomyFilters = ({ dispatch, commit }, taxonomyId ) => { for (let collectionId of taxonomy.collections_ids ) { let endpoint = ''; - endpoint = '/collection/' + collectionId + '/filters/?nopaging=1&include_disabled=no'; + endpoint = '/collection/' + collectionId + '/filters/?nopaging=1&include_disabled=false'; axios.tainacan.get(endpoint) .then((resp) => { diff --git a/src/tainacan.php b/src/tainacan.php index b2baf95ae..34a2976ed 100644 --- a/src/tainacan.php +++ b/src/tainacan.php @@ -3,7 +3,7 @@ Plugin Name: Tainacan Plugin URI: https://tainacan.org/ Description: powerfull and flexible repository platform for WordPress. Manage and publish you digital collections as easily as publishing a post to your blog, while having all the tools of a professional respository platform. -Author: Media Lab / UFG +Author: Tainacan Version: 0.11 Text Domain: tainacan License: GPLv2 or later