mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 05:07:43 +02:00
[UBER-82] Update components (#3227)
Signed-off-by: Ruslan Bayandinov <wazsone@ya.ru>
This commit is contained in:
@@ -39,7 +39,6 @@ import { Asset, IntlString } from '@hcengineering/platform'
|
||||
import { createQuery } from '@hcengineering/presentation'
|
||||
import { calcRank } from '@hcengineering/task'
|
||||
import {
|
||||
ComponentStatus,
|
||||
Issue,
|
||||
IssuePriority,
|
||||
IssuesDateModificationPeriod,
|
||||
@@ -61,7 +60,7 @@ import {
|
||||
import { ViewletDescriptor } from '@hcengineering/view'
|
||||
import { CategoryQuery, groupBy, ListSelectionProvider, SelectDirection } from '@hcengineering/view-resources'
|
||||
import tracker from './plugin'
|
||||
import { defaultComponentStatuses, defaultPriorities, defaultMilestoneStatuses } from './types'
|
||||
import { defaultPriorities, defaultMilestoneStatuses } from './types'
|
||||
|
||||
export * from './types'
|
||||
|
||||
@@ -237,26 +236,6 @@ export type MilestoneViewMode = 'all' | 'planned' | 'active' | 'closed'
|
||||
|
||||
export type ScrumRecordViewMode = 'timeReports' | 'objects'
|
||||
|
||||
export const getIncludedComponentStatuses = (mode: ComponentsFilterMode): ComponentStatus[] => {
|
||||
switch (mode) {
|
||||
case 'all': {
|
||||
return defaultComponentStatuses
|
||||
}
|
||||
case 'active': {
|
||||
return [ComponentStatus.Planned, ComponentStatus.InProgress, ComponentStatus.Paused]
|
||||
}
|
||||
case 'backlog': {
|
||||
return [ComponentStatus.Backlog]
|
||||
}
|
||||
case 'closed': {
|
||||
return [ComponentStatus.Completed, ComponentStatus.Canceled]
|
||||
}
|
||||
default: {
|
||||
return []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const getIncludedMilestoneStatuses = (mode: MilestoneViewMode): MilestoneStatus[] => {
|
||||
switch (mode) {
|
||||
case 'all': {
|
||||
|
||||
Reference in New Issue
Block a user