Fix edit statuses link (#4593)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2024-02-09 20:30:26 +05:00 committed by GitHub
parent be2e435ade
commit 2e4d07fb1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 19 deletions

View File

@ -287,6 +287,7 @@
.hulyAccordionItem-container {
display: flex;
flex-direction: column;
flex-shrink: 0;
width: 100%;
min-width: 0;
min-height: 0;

View File

@ -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)
}

View File

@ -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)
}