Fix notifications on messages containing quotes

This commit is contained in:
2026-04-25 01:05:38 +02:00
parent f9c5297473
commit 0360d53cd6
+3 -3
View File
@@ -1,13 +1,13 @@
<div id="quick-notifications" <div id="quick-notifications"
x-data="{ x-data='{
messages: [ messages: [
{%- for message in messages -%} {%- for message in messages -%}
{%- if not message.extra_tags -%} {%- if not message.extra_tags -%}
{ tag: '{{ message.tags }}', text: '{{ message }}' }, { tag: {{ message.tags|string|tojson }}, text: {{ message|string|tojson }} },
{%- endif -%} {%- endif -%}
{%- endfor -%} {%- endfor -%}
] ]
}" }'
@quick-notification-add="(e) => messages.push(e?.detail)" @quick-notification-add="(e) => messages.push(e?.detail)"
@quick-notification-delete="messages = []"> @quick-notification-delete="messages = []">
<template x-for="(message, index) in messages"> <template x-for="(message, index) in messages">