diff --git a/src/views/admin/components/edition/collection-edition-form.vue b/src/views/admin/components/edition/collection-edition-form.vue index 10fa83700..8c84d0715 100644 --- a/src/views/admin/components/edition/collection-edition-form.vue +++ b/src/views/admin/components/edition/collection-edition-form.vue @@ -159,16 +159,17 @@ aria-role="list" trap-focus position="is-top-right"> - + - { console.log('abort'); }, onerror: () => { console.log('error'); }, onready: () => { console.log('ready'); }, onsuccess: () => { console.log('success'); } }); } else { this.$router.replace({ path: '', query: {} }); this.$router.replace({ path: '', query: this.$store.getters['search/getPostQuery'] }); diff --git a/src/views/admin/js/router.js b/src/views/admin/js/router.js index 98738c378..651d4d68b 100644 --- a/src/views/admin/js/router.js +++ b/src/views/admin/js/router.js @@ -88,13 +88,5 @@ const routes = [ export default createRouter({ routes, - history: createWebHashHistory(), - // set custom query resolver - parseQuery(query) { - return qs.parse(query); - }, - stringifyQuery(query) { - let result = qs.stringify(query); - return result ? result : ''; - } + history: createWebHashHistory() }); diff --git a/src/views/admin/pages/lists/items-page.vue b/src/views/admin/pages/lists/items-page.vue index d8976d2ea..6c4666a93 100644 --- a/src/views/admin/pages/lists/items-page.vue +++ b/src/views/admin/pages/lists/items-page.vue @@ -279,6 +279,7 @@ @@ -301,7 +302,7 @@ aria-controls="items-list-results" role="button" :class="{ 'is-active': order == 'DESC' }" - :model-value="'DESC'" + :value="'DESC'" aria-role="listitem"> @@ -312,7 +313,7 @@ aria-controls="items-list-results" role="button" :class="{ 'is-active': order == 'ASC' }" - :model-value="'ASC'" + :value="'ASC'" aria-role="listitem"> @@ -920,9 +921,9 @@ } else { this.$store.dispatch('search/set_postquery', this.$route.query); } - - // Finally, loads items even berfore facets so they won't stuck them - if (to.fullPath != from.fullPath) + console.log(to, from) + // Finally, loads items even berfore facets so they won't stuck them + if (to.fullPath != from.fullPath) this.$eventBusSearch.loadItems(); // Checks current metaqueries and taxqueries to alert filters that should reload diff --git a/webpack.common.js b/webpack.common.js index e61fe9bfe..7c74474ac 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -101,7 +101,7 @@ module.exports = { new webpack.DefinePlugin({ 'TAINACAN_ENV': JSON.stringify(process.env.NODE_ENV), __VUE_OPTIONS_API__: true, - __VUE_PROD_DEVTOOLS__: false, + __VUE_PROD_DEVTOOLS__: true, }), new VueLoaderPlugin({ prettify: false