start linking notification to project based of project page UUID
This commit is contained in:
parent
5f734ab45b
commit
8c6e21c707
4 changed files with 23 additions and 8 deletions
|
|
@ -12,9 +12,10 @@
|
|||
data-icon="comment"
|
||||
>Commentaire</strong
|
||||
>
|
||||
<span class="notification__client | text-grey-700">{{
|
||||
notification.location.project.title
|
||||
}}</span>
|
||||
<span class="notification__client | text-grey-700"
|
||||
>{{ project.title }}
|
||||
{{ project?.status === "unlisted" ? "(archivé)" : "" }}</span
|
||||
>
|
||||
<time
|
||||
datetime=""
|
||||
class="notification__date | text-grey-700 | ml-auto"
|
||||
|
|
@ -39,8 +40,12 @@
|
|||
<script setup>
|
||||
import { useRouter } from "vue-router";
|
||||
import { useNotificationsStore } from "../../stores/notifications";
|
||||
import { useProjectsStore } from "../../stores/projects";
|
||||
|
||||
const router = useRouter();
|
||||
const { notification } = defineProps({ notification: Object });
|
||||
const { formatDate } = useNotificationsStore();
|
||||
const { getProjectByUuid } = useProjectsStore();
|
||||
|
||||
const project = getProjectByUuid(notification.location.project.uuid);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue