feature/projects-all-the-way-down #3323

Merged
konrad merged 123 commits from feature/projects-all-the-way-down into main 2023-05-30 10:09:40 +00:00
Showing only changes of commit 9c3259c660 - Show all commits

View File

@ -15,7 +15,7 @@
</div>
</header>
<ProjectCardGrid
<ProjectCardGrid
:projects="projects"
:show-archived="showArchived"
/>
@ -44,10 +44,9 @@ const showArchived = useStorage('showArchived', false)
const loading = computed(() => projectStore.isLoading)
const projects = computed(() => {
return projectStore.projectsArray.filter(project => showArchived.value
? true
: !project.isArchived,
)
return showArchived.value
? projectStore.projectsArray
: projectStore.projectsArray.filter(({isArchived}) => !isArchived)
})
</script>