From 15e74144c6e949ffc8463af11a21f1902dd7b1e7 Mon Sep 17 00:00:00 2001 From: Mohamad Choupan Date: Fri, 20 Dec 2024 23:58:37 +0330 Subject: [PATCH] feat: add describe by single resource --- .../TypeDetailNew/Integration/index.tsx | 58 +++++++++++++------ 1 file changed, 40 insertions(+), 18 deletions(-) diff --git a/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx b/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx index 27817f329..aecca9c2a 100644 --- a/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx +++ b/services/web-ui/src/pages/Integrations/TypeDetailNew/Integration/index.tsx @@ -279,7 +279,6 @@ export default function IntegrationList({ let body ={} if(flag){ body = { - force_full: true, integration_info:row?.map((item)=>{ return { integration_type: integration_type, @@ -292,7 +291,6 @@ export default function IntegrationList({ } else{ body = { - force_full: true, integration_info: [ { integration_type: integration_type, @@ -303,6 +301,14 @@ export default function IntegrationList({ ], } } + if(selectedResourceType?.length > 0 && selectedResourceType?.length < resourceTypes?.length){ + // @ts-ignore + body['resource_types'] = selectedResourceType?.map((item:any)=>{ + return { + resource_type: item.value, + } + }) + } axios @@ -313,6 +319,7 @@ export default function IntegrationList({ ...actionLoading, discovery: false, }) + setRunOpen(false) setNotification({ text: `Discovery started`, type: 'success', @@ -687,21 +694,35 @@ export default function IntegrationList({ // @ts-ignore header={'Run Discovery'} footer={ - <> - - - + + } > { + onChange={({ detail }) => { setSelectedResourceType(detail.selectedOptions) }} + tokenLimit={2} placeholder="Select resource type" />