diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/views/Health/EventLogs/EventLogs.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/views/Health/EventLogs/EventLogs.vue b/src/views/Health/EventLogs/EventLogs.vue index 883b55cb..0238dbc7 100644 --- a/src/views/Health/EventLogs/EventLogs.vue +++ b/src/views/Health/EventLogs/EventLogs.vue @@ -101,6 +101,12 @@ export default { .dispatch('eventLog/getEventLogData') .finally(() => this.endLoader()); }, + beforeRouteLeave(to, from, next) { + // Hide loader if the user navigates to another page + // before request is fulfilled. + this.hideLoader(); + next(); + }, methods: { getStatus(serverity) { switch (serverity) { |