Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-10-16 18:20:23 +07:00
committed by GitHub
parent d5d98f64e7
commit e1af333fc6
24 changed files with 93 additions and 165 deletions
@@ -13,16 +13,14 @@
// limitations under the License.
-->
<script lang="ts">
import { createQuery } from '@hcengineering/presentation'
import type { Issue, Project } from '@hcengineering/tracker'
import tracker from '../../plugin'
import { activeProjects } from '../../utils'
export let value: Issue
const spaceQuery = createQuery()
let currentProject: Project | undefined = undefined
$: spaceQuery.query(tracker.class.Project, { _id: value.space }, (res) => ([currentProject] = res))
$: currentProject = $activeProjects.get(value.space)
$: title = currentProject ? `${currentProject.identifier}-${value?.number}` : `${value?.number}`
</script>