mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-21 09:07:50 +02:00
Tracker: Add project issue list view (#2012)
Signed-off-by: Dvinyanin Alexandr <dvinyanin.alexandr@gmail.com>
This commit is contained in:
@@ -15,12 +15,20 @@
|
||||
<script lang="ts">
|
||||
import { WithLookup } from '@anticrm/core'
|
||||
import { Project } from '@anticrm/tracker'
|
||||
import { getCurrentLocation, navigate } from '@anticrm/ui'
|
||||
|
||||
export let value: WithLookup<Project>
|
||||
function navigateToProject () {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[2] = 'project'
|
||||
loc.path[3] = value._id
|
||||
loc.path.length = 4
|
||||
navigate(loc)
|
||||
}
|
||||
</script>
|
||||
|
||||
{#if value}
|
||||
<div class="flex-presenter projectPresenterRoot">
|
||||
<div class="flex-presenter projectPresenterRoot" on:click={navigateToProject}>
|
||||
<span title={value.label} class="projectLabel">{value.label}</span>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user