feat: added notifications workflow
This commit is contained in:
@@ -69,7 +69,7 @@ const RequestPortal: React.FC<IRequestPortalProps> = ({ hasTeamsContext, context
|
||||
// Переход «создать на основе» (в т.ч. из открытой заявки в панели): переключаем
|
||||
// вкладку категорий на категорию целевой формы, чтобы она совпала с открытой формой.
|
||||
React.useEffect(() => {
|
||||
if (route.mode === 'create' && route.formKey) {
|
||||
if ((route.mode === 'create' || route.mode === 'edit') && route.formKey) {
|
||||
const found = REQUEST_TYPES.filter((r) => r.id === route.formKey)[0];
|
||||
if (found) setActiveCategoryId(found.categoryId);
|
||||
}
|
||||
@@ -117,6 +117,11 @@ const RequestPortal: React.FC<IRequestPortalProps> = ({ hasTeamsContext, context
|
||||
? { formKey: route.formKey, sourceId: route.sourceId }
|
||||
: undefined
|
||||
}
|
||||
editForm={
|
||||
route.mode === 'edit' && route.formKey && route.itemId
|
||||
? { formKey: route.formKey, itemId: route.itemId }
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
</>
|
||||
) : route.nav === 'search' ? (
|
||||
|
||||
Reference in New Issue
Block a user