mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user