comment notification working
This commit is contained in:
parent
94c5737245
commit
2b059742e9
2 changed files with 7 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
class="notification | bg-white rounded-lg | p-16 | flow"
|
class="notification | bg-white rounded-lg | p-16 | flow"
|
||||||
:data-status="notification.isread == true ? 'read' : 'unread'"
|
:data-status="notification.isread == true ? 'read' : 'unread'"
|
||||||
data-type="comment"
|
data-type="comment"
|
||||||
@click="read(notification)"
|
@click="router.push(notification.location.dialoguri + '&comments=true')"
|
||||||
>
|
>
|
||||||
<header>
|
<header>
|
||||||
<p class="flex">
|
<p class="flex">
|
||||||
|
|
@ -37,8 +37,10 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
import { useNotificationsStore } from "../../stores/notifications";
|
import { useNotificationsStore } from "../../stores/notifications";
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
const { notification } = defineProps({ notification: Object });
|
const { notification } = defineProps({ notification: Object });
|
||||||
const { formatDate } = useNotificationsStore();
|
const { formatDate } = useNotificationsStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,10 @@
|
||||||
class="notification | bg-white rounded-lg | p-16 | flow"
|
class="notification | bg-white rounded-lg | p-16 | flow"
|
||||||
:data-status="notification.isread == 'true' ? 'read' : 'unread'"
|
:data-status="notification.isread == 'true' ? 'read' : 'unread'"
|
||||||
data-type="content"
|
data-type="content"
|
||||||
@click="read(notification)"
|
@click="
|
||||||
|
read(notification);
|
||||||
|
router.push(notification.location.page.uri);
|
||||||
|
"
|
||||||
title="Aller au contenu"
|
title="Aller au contenu"
|
||||||
>
|
>
|
||||||
<header>
|
<header>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue