aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/views/common/LoadingButton.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-09-03 22:49:55 +0800
committercrupest <crupest@outlook.com>2020-09-03 22:49:55 +0800
commitc5a3df9b035f3aa47571236aefea8108ea4e4ad4 (patch)
treecd2a1e36c40bf42b877f76725cdbbc2c1ddf3029 /Timeline/ClientApp/src/app/views/common/LoadingButton.tsx
parent8c53fbcc7ad727358f9a2ad82075ffa9e902ab7e (diff)
downloadtimeline-c5a3df9b035f3aa47571236aefea8108ea4e4ad4.tar.gz
timeline-c5a3df9b035f3aa47571236aefea8108ea4e4ad4.tar.bz2
timeline-c5a3df9b035f3aa47571236aefea8108ea4e4ad4.zip
...
Diffstat (limited to 'Timeline/ClientApp/src/app/views/common/LoadingButton.tsx')
-rw-r--r--Timeline/ClientApp/src/app/views/common/LoadingButton.tsx3
1 files changed, 2 insertions, 1 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 (
<Button
variant={variant != null ? `outline-${variant}` : "outline-primary"}
- disabled={loading}
+ disabled={disabled || loading}
{...otherProps}
>
{otherProps.children}