mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-31 23:46:12 +03: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 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
|
@ -76,21 +76,10 @@ export * from './utils'
|
||||
export { StatePresenter, StateRefPresenter, TypeStatesPopup, TaskKindSelector }
|
||||
|
||||
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()
|
||||
loc.path[2] = 'setting'
|
||||
loc.path[3] = 'setting'
|
||||
loc.path[4] = 'statuses'
|
||||
loc.query =
|
||||
descriptor != null
|
||||
? {
|
||||
descriptorId: descriptor._id,
|
||||
typeId: object.type
|
||||
}
|
||||
: {
|
||||
typeId: object.type
|
||||
}
|
||||
loc.path[3] = 'statuses'
|
||||
loc.path[4] = object.type
|
||||
navigate(loc)
|
||||
}
|
||||
|
||||
|
@ -216,12 +216,8 @@ async function move (issues: Issue | Issue[]): Promise<void> {
|
||||
async function editWorkflowStatuses (project: Project): Promise<void> {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[2] = settingId
|
||||
loc.path[3] = settingId
|
||||
loc.path[4] = 'statuses'
|
||||
loc.query = {
|
||||
descriptorId: tracker.descriptors.ProjectType,
|
||||
typeId: project.type
|
||||
}
|
||||
loc.path[3] = 'statuses'
|
||||
loc.path[4] = project.type
|
||||
navigate(loc)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user