diff --git a/timesketch/frontend-ng/src/components/Explore/EventList.vue b/timesketch/frontend-ng/src/components/Explore/EventList.vue index ee8584bb1b..53918775e7 100644 --- a/timesketch/frontend-ng/src/components/Explore/EventList.vue +++ b/timesketch/frontend-ng/src/components/Explore/EventList.vue @@ -885,7 +885,7 @@ export default { let msg = 'Sorry, there was a problem fetching your search results. Error: "'+ e.response.data.message +'"' if (e.response.data.message.includes('too_many_nested_clauses')) { msg = 'Sorry, your query is too complex. Use field-specific search (like "message:()") and try again.' - this.errorSnackBar(msg) + this.warningSnackBar(msg) } else { this.errorSnackBar(msg) } diff --git a/timesketch/frontend-ng/src/mixins/snackBar.js b/timesketch/frontend-ng/src/mixins/snackBar.js index 934804af4e..97ac9bc918 100644 --- a/timesketch/frontend-ng/src/mixins/snackBar.js +++ b/timesketch/frontend-ng/src/mixins/snackBar.js @@ -38,6 +38,12 @@ Vue.mixin({ snackbar.color = "error" this.$store.dispatch('setSnackBar', snackbar) }, + warningSnackBar(message) { + let snackbar = defaultSnackBar + snackbar.message = message + snackbar.color = "warning" + this.$store.dispatch('setSnackBar', snackbar) + }, infoSnackBar(message) { let snackbar = defaultSnackBar snackbar.message = message