start linking notification to project based of project page UUID

This commit is contained in:
isUnknown 2025-01-09 16:11:59 +01:00
parent 5f734ab45b
commit 8c6e21c707
4 changed files with 23 additions and 8 deletions

View file

@ -17,5 +17,11 @@ export const useProjectsStore = defineStore("projects", () => {
.fetchData("projects")
.then((json) => (projects.value = json.page.children));
return { projects, currentProjects, archivedProjects };
// Functions
function getProjectByUuid(uuid) {
const project = projects.value.find((project) => project.uuid === uuid);
return project;
}
return { projects, currentProjects, archivedProjects, getProjectByUuid };
});