]> git.parisson.com Git - teleforma.git/commitdiff
open blank window on notification click
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Dec 2024 09:41:43 +0000 (10:41 +0100)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Mon, 9 Dec 2024 09:41:43 +0000 (10:41 +0100)
teleforma/src/js/components/sub/NotificationMessage.vue

index 7dc515026ab43bb78b70665ec18a7083afad61ba..9b6c16aacc8a66c69e9bfeafcd2c42cafba37b5f 100644 (file)
@@ -33,7 +33,7 @@ export default class NotificationMessage extends NotificationMessageProps {
 
   async onClick() {
     this.setAsViewed()
-    if (this.$props.url) window.location.href = this.$props.url
+    if (this.$props.url) window.open(this.$props.url, '_blank');
   }
 
   async onMiddleClick() {