read project creation request notification working

This commit is contained in:
isUnknown 2025-01-23 16:30:17 +01:00
parent c75c5e1d8a
commit 7038185e7f
2 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,6 @@
<template>
<article
@click="read()"
v-if="useUserStore.role !== 'client'"
class="notification | bg-white rounded-lg | p-16 | flow"
data-type="project-request"
@ -39,8 +40,17 @@
<script setup>
import { useNotificationsStore } from "../../stores/notifications";
import { useUserStore } from "../../stores/user";
import { useApiStore } from "../../stores/api";
const { notification } = defineProps({ notification: Object });
const { formatDate } = useNotificationsStore();
const { user } = useUserStore();
const api = useApiStore();
async function read() {
const response = await api.readNotification(
notification.id,
notification.project.uri
);
}
</script>