mark as unread if comment is in notifications working

This commit is contained in:
isUnknown 2024-10-23 16:19:33 +02:00
parent b99f7c81dd
commit 65a2bbaa8d
4 changed files with 36 additions and 3 deletions

View file

@ -4,6 +4,7 @@
user: {
role: '<?= $kirby->user()->role() ?>',
uuid: '<?= $kirby->user()->uuid() ?>',
notifications: <?= json_encode(Yaml::decode($kirby->user()->notifications()->value())) ?>
<?php if ($kirby->user()->role() == 'client'): ?>
client: {
name: '<?= $kirby->user()->client()->toPage()->title() ?>',