From 7581a3f7fcaf1cd314e42a5f07def992ca26672d Mon Sep 17 00:00:00 2001 From: Noble Mittal <62551163+beingnoble03@users.noreply.github.com> Date: Tue, 15 Oct 2024 00:50:49 +0530 Subject: [PATCH] VTAdmin(web): Add refresh compatibility to workflow screen (all tabs) (#16865) 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 = ({