mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-25 11:05:07 +02:00
@@ -41,13 +41,14 @@
|
||||
import SetDueDateActionPopup from './SetDueDateActionPopup.svelte'
|
||||
import SetParentIssueActionPopup from './SetParentIssueActionPopup.svelte'
|
||||
import SprintSelector from './sprints/SprintSelector.svelte'
|
||||
import { activeProject, activeSprint } from '../issues'
|
||||
|
||||
export let space: Ref<Team>
|
||||
export let status: Ref<IssueStatus> | undefined = undefined
|
||||
export let priority: IssuePriority = IssuePriority.NoPriority
|
||||
export let assignee: Ref<Employee> | null = null
|
||||
export let project: Ref<Project> | null = null
|
||||
export let sprint: Ref<Sprint> | null = null
|
||||
export let project: Ref<Project> | null = $activeProject ?? null
|
||||
export let sprint: Ref<Sprint> | null = $activeSprint ?? null
|
||||
|
||||
let issueStatuses: WithLookup<IssueStatus>[] | undefined
|
||||
export let parentIssue: Issue | undefined
|
||||
@@ -140,6 +141,7 @@
|
||||
description: object.description,
|
||||
assignee: object.assignee,
|
||||
project: object.project,
|
||||
sprint: object.sprint,
|
||||
number: (incResult as any).object.sequence,
|
||||
status: object.status,
|
||||
priority: object.priority,
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
import tracker from '../../plugin'
|
||||
import IssuesView from '../issues/IssuesView.svelte'
|
||||
import ProjectPopup from './ProjectPopup.svelte'
|
||||
import { activeProject } from '../../issues'
|
||||
import { onDestroy } from 'svelte'
|
||||
|
||||
export let project: Project
|
||||
|
||||
@@ -22,6 +24,12 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$: $activeProject = project?._id
|
||||
|
||||
onDestroy(() => {
|
||||
$activeProject = undefined
|
||||
})
|
||||
</script>
|
||||
|
||||
<IssuesView query={{ project: project._id, space: project.space }} label={project.label}>
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
import { Sprint } from '@anticrm/tracker'
|
||||
import { Button, EditBox, Icon, showPopup } from '@anticrm/ui'
|
||||
import { DocAttributeBar } from '@anticrm/view-resources'
|
||||
import { onDestroy } from 'svelte'
|
||||
import { activeSprint } from '../../issues'
|
||||
import tracker from '../../plugin'
|
||||
import Expanded from '../icons/Expanded.svelte'
|
||||
import IssuesView from '../issues/IssuesView.svelte'
|
||||
@@ -24,6 +26,12 @@
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
$: $activeSprint = sprint?._id
|
||||
|
||||
onDestroy(() => {
|
||||
$activeSprint = undefined
|
||||
})
|
||||
</script>
|
||||
|
||||
<IssuesView query={{ sprint: sprint._id, space: sprint.space }} label={sprint.label}>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
const resultSprintsQuery = createQuery()
|
||||
|
||||
const sprintOptions: FindOptions<Sprint> = {
|
||||
sort: { modifiedOn: SortingOrder.Descending },
|
||||
sort: { startDate: SortingOrder.Descending },
|
||||
limit: ENTRIES_LIMIT,
|
||||
lookup: { lead: contact.class.Employee }
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
import type { ButtonKind, ButtonSize } from '@anticrm/ui'
|
||||
import { Button, ButtonShape, eventToHTMLElement, SelectPopup, showPopup } from '@anticrm/ui'
|
||||
import tracker from '../../plugin'
|
||||
import { sprintStatusAssets } from '../../types'
|
||||
|
||||
export let value: Ref<Sprint> | null | undefined
|
||||
export let shouldShowLabel: boolean = true
|
||||
@@ -45,7 +46,7 @@
|
||||
rawSprints = res
|
||||
},
|
||||
{
|
||||
sort: { modifiedOn: SortingOrder.Ascending }
|
||||
sort: { startDate: SortingOrder.Descending }
|
||||
}
|
||||
)
|
||||
|
||||
@@ -76,7 +77,8 @@
|
||||
...rawSprints.map((p) => ({
|
||||
id: p._id,
|
||||
icon: tracker.icon.Sprint,
|
||||
text: p.label
|
||||
text: p.label,
|
||||
category: sprintStatusAssets[p.status]
|
||||
}))
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user