summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/layouts/AppLayout.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/layouts/AppLayout.vue b/src/layouts/AppLayout.vue
index 4f2426324..4f4684807 100644
--- a/src/layouts/AppLayout.vue
+++ b/src/layouts/AppLayout.vue
@@ -54,6 +54,13 @@ export default {
},
methods: {
refresh() {
+ // Clear all toast messages
+ document.querySelectorAll('.toast').forEach((toast) => {
+ const toastId = toast.id;
+ if (toastId) {
+ this.$bvToast.hide(toastId);
+ }
+ });
// Changing the component :key value will trigger
// a component re-rendering and 'refresh' the view
this.routerKey += 1;