From 0dc246d8e18b26941dbbcbb0d2fa1bc2027d1556 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Mon, 27 Jan 2025 18:41:13 +0100 Subject: [PATCH] Appointment notification : link to panel DTL tab --- src/views/Notifications.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/Notifications.vue b/src/views/Notifications.vue index 9ba519e..7af6dc0 100644 --- a/src/views/Notifications.vue +++ b/src/views/Notifications.vue @@ -128,7 +128,11 @@ function readAll() { // Functions function handleNotificationClick(notification) { - const href = getHref(notification); + const href = + notification.type === "appointment-request" + ? getHref(notification) + "?tab=designToLight" + : getHref(notification); + if (href.startsWith("http")) { window.open(href, "_blank"); } else {