From 23e5cc0b11b76a464526d397c77ce0961cf66127 Mon Sep 17 00:00:00 2001 From: Noble Mittal Date: Tue, 1 Oct 2024 02:30:19 +0530 Subject: [PATCH] feat: Add refresh compatibility to workflow screen (all tabs) Signed-off-by: Noble Mittal --- web/vtadmin/src/components/inputs/Select.tsx | 4 +- .../components/routes/workflow/Workflow.tsx | 80 +++++++++++++++---- .../routes/workflow/WorkflowDetails.tsx | 20 +++-- web/vtadmin/src/hooks/api.ts | 2 +- 4 files changed, 80 insertions(+), 26 deletions(-) diff --git a/web/vtadmin/src/components/inputs/Select.tsx b/web/vtadmin/src/components/inputs/Select.tsx index d1fdd83af6e..588c350073c 100644 --- a/web/vtadmin/src/components/inputs/Select.tsx +++ b/web/vtadmin/src/components/inputs/Select.tsx @@ -37,6 +37,7 @@ interface Props { size?: 'large'; description?: string; required?: boolean; + disableClearSelection?: boolean; } /** @@ -60,6 +61,7 @@ export const Select = ({ size, description, required, + disableClearSelection, }: Props) => { const _itemToString = React.useCallback( (item: T | null): string => { @@ -146,7 +148,7 @@ export const Select = ({