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
+8 -1
View File
@@ -69,7 +69,7 @@ import {
groupBy,
statusStore
} from '@hcengineering/view-resources'
import { get } from 'svelte/store'
import { get, writable } from 'svelte/store'
import tracker from './plugin'
import { defaultMilestoneStatuses, defaultPriorities } from './types'
@@ -371,6 +371,13 @@ export async function milestoneSort (
})
}
export const activeProjects = writable<IdMap<Project>>(new Map())
const activeProjectsQuery = createQuery(true)
activeProjectsQuery.query(tracker.class.Project, { archived: false }, (projects) => {
activeProjects.set(toIdMap(projects))
})
export async function moveIssuesToAnotherMilestone (
client: TxOperations,
oldMilestone: Milestone,