summaryrefslogtreecommitdiff
path: root/src/components/_sila/Global/Search.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/_sila/Global/Search.vue')
-rw-r--r--src/components/_sila/Global/Search.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/_sila/Global/Search.vue b/src/components/_sila/Global/Search.vue
index 79a403ad..002669cd 100644
--- a/src/components/_sila/Global/Search.vue
+++ b/src/components/_sila/Global/Search.vue
@@ -102,7 +102,7 @@ export default {
this.$emit('search-by', this.searchBy);
},
removeSearchParam() {
- window.location.href = '/#/logs/event-logs';
+ this.$router.push('/logs/event-logs');
},
search() {
if (!this.params) {
@@ -110,9 +110,14 @@ export default {
}
let search = this.params.get('search');
+ let by = this.params.get('by');
if (search) {
this.filter = search;
this.onChangeInput();
+ if (by) {
+ this.searchBy = by;
+ this.onSelect();
+ }
}
},
onChangeInput() {