From 6ca0229b150c2f3acab19cc5a5e4ade9204f89e6 Mon Sep 17 00:00:00 2001 From: weryques Date: Tue, 3 Jul 2018 11:04:25 -0300 Subject: [PATCH] Now the search in header realy search in repository --- .../components/navigation/tainacan-header.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/admin/components/navigation/tainacan-header.vue b/src/admin/components/navigation/tainacan-header.vue index 7ea0fbf32..195fa743b 100644 --- a/src/admin/components/navigation/tainacan-header.vue +++ b/src/admin/components/navigation/tainacan-header.vue @@ -26,10 +26,10 @@ :value="searchQuery" @input="futureSearchQuery = $event.target.value" @keyup.enter="updateSearch()"> - - + + {{ $i18n.get('advanced_search') }} @@ -65,6 +65,14 @@ export default { }); }, updateSearch() { + console.log(this.$route); + + if(this.$route.path != '/items') { + this.$router.push({ + path: '/items', + }); + } + this.$eventBusSearch.setSearchQuery(this.futureSearchQuery); }, }, @@ -116,7 +124,7 @@ export default { } .level-right { padding-right: 12px; - a{ + a { color: white; } .search-area { @@ -143,6 +151,7 @@ export default { cursor: pointer; height: 27px; font-size: 18px; + width: auto !important; } }