Add Milestones to issue cards in kanban board view (#8822)
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / uitest-workspaces (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions

This commit is contained in:
Anton Alexeyev 2025-05-04 16:35:47 +07:00 committed by GitHub
parent c42a94f697
commit 2d3ebb61cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 1 deletions

View File

@ -479,7 +479,17 @@ export function defineViewlets (builder: Builder): void {
configOptions: {
strict: true
},
config: ['subIssues', 'priority', 'component', 'dueDate', 'labels', 'estimation', 'attachments', 'comments']
config: [
'subIssues',
'priority',
'component',
'milestone',
'dueDate',
'labels',
'estimation',
'attachments',
'comments'
]
},
tracker.viewlet.IssueKanban
)

View File

@ -80,6 +80,7 @@
import PriorityEditor from './PriorityEditor.svelte'
import StatusEditor from './StatusEditor.svelte'
import EstimationEditor from './timereport/EstimationEditor.svelte'
import MilestoneEditor from '../milestones/MilestoneEditor.svelte'
const _class = tracker.class.Issue
export let space: Ref<Project> | undefined = undefined
@ -437,6 +438,16 @@
justify={'center'}
/>
{/if}
{#if enabledConfig(config, 'milestone')}
<MilestoneEditor
value={issue}
{space}
isEditable={true}
kind={'link-bordered'}
size={'small'}
justify={'center'}
/>
{/if}
{#if enabledConfig(config, 'dueDate')}
<DueDatePresenter value={issue} size={'small'} kind={'link-bordered'} />
{/if}