From 46dc7e12da41056914a0f5fcdabbd20f81ef3bac Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 3 Sep 2020 22:49:55 +0800 Subject: ... --- .../src/app/views/common/LoadingButton.tsx | 3 +- .../src/app/views/common/OperationDialog.tsx | 36 ++++++++++------------ 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/Timeline/ClientApp/src/app/views/common/LoadingButton.tsx b/Timeline/ClientApp/src/app/views/common/LoadingButton.tsx index fa721afe..154334a7 100644 --- a/Timeline/ClientApp/src/app/views/common/LoadingButton.tsx +++ b/Timeline/ClientApp/src/app/views/common/LoadingButton.tsx @@ -4,12 +4,13 @@ import { Button, ButtonProps, Spinner } from "react-bootstrap"; const LoadingButton: React.FC<{ loading?: boolean } & ButtonProps> = ({ loading, variant, + disabled, ...otherProps }) => { return ( - + ); - } else if (step === "process") { - body = ( - - {props.processPrompt?.() ?? } - - ); } else { let content: React.ReactNode; const result = step; @@ -345,7 +341,7 @@ const OperationDialog: React.FC = (props) => { const title = typeof props.title === "string" ? t(props.title) : props.title; return ( - +