diff --git a/frontend/src/components/Layouts/AppSidebar.vue b/frontend/src/components/Layouts/AppSidebar.vue
index 10f9c859..86e12133 100644
--- a/frontend/src/components/Layouts/AppSidebar.vue
+++ b/frontend/src/components/Layouts/AppSidebar.vue
@@ -9,6 +9,7 @@
globalStore().isSidebarCollapsed)
+const target = ref(null)
+onClickOutside(
+ target,
+ () => {
+ if (notificationsStore().visible) {
+ toggleNotificationPanel()
+ }
+ },
+ {
+ ignore: ['#notifications-btn'],
+ }
+)
+
function toggleNotificationPanel() {
notificationsStore().toggle()
}
@@ -97,7 +110,7 @@ function getRoute(notification) {
return {
name: notification.route_name,
params: params,
- hash: "#" + notification.comment,
+ hash: '#' + notification.comment,
}
}