Updated flows tree
Deploy Frontend / build-and-deploy (push) Successful in 4m7s
Details
Deploy Frontend / build-and-deploy (push) Successful in 4m7s
Details
This commit is contained in:
parent
acbd65aa4f
commit
62fe738c8d
|
|
@ -25,6 +25,7 @@ import { useCategories } from '@/features/categories/hooks/useCategories'
|
|||
import { useTopics } from '@/features/topics/hooks/useTopics'
|
||||
import type { UserHierarchy } from '@/types/api'
|
||||
import type { ChainGroup } from '@/features/hierarchies/utils'
|
||||
import { useAllSystemOptions } from '@/features/hierarchies/hooks/useSystemOptions'
|
||||
|
||||
interface HierarchyEditModalProps {
|
||||
hierarchy: UserHierarchy | null
|
||||
|
|
@ -47,6 +48,7 @@ export default function HierarchyEditModal({
|
|||
const { data: users } = useUsers({ limit: 1000 })
|
||||
const { data: departments } = useDepartments()
|
||||
const { data: categories } = useCategories({ limit: 1000 })
|
||||
const { options: systemOptions } = useAllSystemOptions()
|
||||
|
||||
const isEditMode = hierarchy !== null
|
||||
|
||||
|
|
@ -357,15 +359,14 @@ export default function HierarchyEditModal({
|
|||
)}
|
||||
|
||||
<Select
|
||||
label="Целевая система шага (Target System)"
|
||||
label="Целевая система шага"
|
||||
placeholder="Все системы (по умолчанию)"
|
||||
data={[
|
||||
{ value: '', label: 'Все системы' },
|
||||
{ value: 'all', label: 'Все системы' },
|
||||
...systemOptions.map((s) => ({ value: s.value, label: s.label })),
|
||||
]}
|
||||
value={form.values.target_system || ''}
|
||||
onChange={(v) => form.setFieldValue('target_system', v || null)}
|
||||
clearable
|
||||
value={form.values.target_system || 'all'}
|
||||
onChange={(v) => form.setFieldValue('target_system', v === 'all' ? null : v)}
|
||||
description="Укажите систему, если данный шаг согласующего применяется только к определенной системе"
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue