Updated ListItem layout (#7008)

Signed-off-by: Alexander Platov <alexander.platov@hardcoreeng.com>
This commit is contained in:
Alexander Platov
2024-10-22 14:46:39 +07:00
committed by GitHub
parent 385bd572a3
commit 15ce5442c6
11 changed files with 77 additions and 26 deletions
@@ -2,11 +2,13 @@
import { Issue } from '@hcengineering/tracker'
import { getClient } from '@hcengineering/presentation'
import type { ButtonKind } from '@hcengineering/ui'
import { HyperlinkEditor } from '@hcengineering/view-resources'
import github from '../../plugin'
import { integrationRepositories } from '../utils'
export let value: Issue
export let kind: ButtonKind = 'ghost'
$: ghIssue = getClient().getHierarchy().asIf(value, github.mixin.GithubIssue)
@@ -14,14 +16,12 @@
</script>
{#if ghIssue !== undefined && ghIssue.url !== '' && repository !== undefined}
<div class="flex flex-row-center">
<HyperlinkEditor
readonly
icon={github.icon.Github}
kind={'ghost'}
value={ghIssue.url}
placeholder={github.string.Issue}
title={`${repository.name}`}
/>
</div>
<HyperlinkEditor
readonly
icon={github.icon.Github}
{kind}
value={ghIssue.url}
placeholder={github.string.Issue}
title={`${repository.name}`}
/>
{/if}