From e0f59e4754e1429f159f4f43fdff6cf0f84fbe49 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Wed, 8 Feb 2023 12:00:51 +0000 Subject: [PATCH] fix workflow variable bugs --- CommonUI/src/Components/Modal/Modal.tsx | 13 +- .../src/Components/ModelTable/ModelTable.tsx | 76 ++++----- CommonUI/src/Components/Table/TableRow.tsx | 12 +- .../Components/Workflow/WorkflowElement.tsx | 42 +++++ Dashboard/src/Pages/Workflow/Logs.tsx | 148 ++++++++++++----- Dashboard/src/Pages/Workflow/Variable.tsx | 14 +- Dashboard/src/Pages/Workflow/View/Index.tsx | 15 ++ Dashboard/src/Pages/Workflow/View/Logs.tsx | 154 +++++++++++++----- .../src/Pages/Workflow/View/Variable.tsx | 21 ++- Dashboard/src/Pages/Workflow/Workflows.tsx | 15 ++ Dashboard/src/Utils/RouteMap.ts | 6 +- Model/Models/WorkflowLog.tsx | 3 +- Model/Models/WorkflowVariable.ts | 10 +- 13 files changed, 381 insertions(+), 148 deletions(-) create mode 100644 Dashboard/src/Components/Workflow/WorkflowElement.tsx diff --git a/CommonUI/src/Components/Modal/Modal.tsx b/CommonUI/src/Components/Modal/Modal.tsx index e898d00acb..07dc16dfca 100644 --- a/CommonUI/src/Components/Modal/Modal.tsx +++ b/CommonUI/src/Components/Modal/Modal.tsx @@ -8,6 +8,11 @@ import Icon, { IconType, SizeProp, ThickProp } from '../Icon/Icon'; import IconProp from 'Common/Types/Icon/IconProp'; import { VeryLightGrey } from 'Common/Types/BrandColors'; +export enum ModalWidth { + Normal, + Large +} + export interface ComponentProps { title: string; description?: string | undefined; @@ -23,6 +28,7 @@ export interface ComponentProps { isBodyLoading?: boolean | undefined; icon?: IconProp | undefined; iconType?: IconType | undefined; + modalWidth?: ModalWidth | undefined } const Modal: FunctionComponent = ( @@ -51,7 +57,7 @@ const Modal: FunctionComponent = (
-
+
{props.onClose && (