fix: don't show > for top-level projects
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
kolaente 2023-03-29 17:12:59 +02:00
parent ecb8862872
commit 1f69763c3d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -11,7 +11,7 @@
@search="findProjects" @search="findProjects"
> >
<template #searchResult="{option}"> <template #searchResult="{option}">
<span class="has-text-grey"> <span class="has-text-grey" v-if="projectStore.getParentProjects(option).length > 1">
{{ projectStore.getParentProjects(option).filter(p => p.id !== option.id).map(p => getProjectTitle(p)).join(' &gt; ') }} &gt; {{ projectStore.getParentProjects(option).filter(p => p.id !== option.id).map(p => getProjectTitle(p)).join(' &gt; ') }} &gt;
</span> </span>
{{ getProjectTitle(option) }} {{ getProjectTitle(option) }}