mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
Fix edit statuses link (#4593)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
be2e435ade
commit
2e4d07fb1b
@ -287,6 +287,7 @@
|
|||||||
.hulyAccordionItem-container {
|
.hulyAccordionItem-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
flex-shrink: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
@ -76,21 +76,10 @@ export * from './utils'
|
|||||||
export { StatePresenter, StateRefPresenter, TypeStatesPopup, TaskKindSelector }
|
export { StatePresenter, StateRefPresenter, TypeStatesPopup, TaskKindSelector }
|
||||||
|
|
||||||
async function editStatuses (object: Project, ev: Event): Promise<void> {
|
async function editStatuses (object: Project, ev: Event): Promise<void> {
|
||||||
const client = getClient()
|
|
||||||
const descriptor = await client.findOne(task.class.ProjectTypeDescriptor, { attachedToClass: object._class })
|
|
||||||
const loc = getCurrentLocation()
|
const loc = getCurrentLocation()
|
||||||
loc.path[2] = 'setting'
|
loc.path[2] = 'setting'
|
||||||
loc.path[3] = 'setting'
|
loc.path[3] = 'statuses'
|
||||||
loc.path[4] = 'statuses'
|
loc.path[4] = object.type
|
||||||
loc.query =
|
|
||||||
descriptor != null
|
|
||||||
? {
|
|
||||||
descriptorId: descriptor._id,
|
|
||||||
typeId: object.type
|
|
||||||
}
|
|
||||||
: {
|
|
||||||
typeId: object.type
|
|
||||||
}
|
|
||||||
navigate(loc)
|
navigate(loc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,12 +216,8 @@ async function move (issues: Issue | Issue[]): Promise<void> {
|
|||||||
async function editWorkflowStatuses (project: Project): Promise<void> {
|
async function editWorkflowStatuses (project: Project): Promise<void> {
|
||||||
const loc = getCurrentLocation()
|
const loc = getCurrentLocation()
|
||||||
loc.path[2] = settingId
|
loc.path[2] = settingId
|
||||||
loc.path[3] = settingId
|
loc.path[3] = 'statuses'
|
||||||
loc.path[4] = 'statuses'
|
loc.path[4] = project.type
|
||||||
loc.query = {
|
|
||||||
descriptorId: tracker.descriptors.ProjectType,
|
|
||||||
typeId: project.type
|
|
||||||
}
|
|
||||||
navigate(loc)
|
navigate(loc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user