feat(frontend): update displayed path for treeview (#2551)

This commit is contained in:
Faton Ramadani
2023-11-03 09:59:02 +01:00
committed by GitHub
parent 0aaffadf0c
commit 0349ba5d56
@@ -18,6 +18,8 @@
export let href: string
export let workspaceId: string
export let depth: number = 0
let displayPath: string = (depth === 0 ? path : path?.split('/')?.slice(-1)?.[0]) ?? ''
</script>
<div
@@ -36,7 +38,7 @@
{#if marked}
{@html marked}
{:else}
{!summary || summary.length == 0 ? path : summary}
{!summary || summary.length == 0 ? displayPath : summary}
{/if}
</div>
<div class="text-secondary text-2xs truncate text-left font-light">