diff options
author | crupest <crupest@outlook.com> | 2020-09-03 22:49:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-09-03 22:49:55 +0800 |
commit | c5a3df9b035f3aa47571236aefea8108ea4e4ad4 (patch) | |
tree | cd2a1e36c40bf42b877f76725cdbbc2c1ddf3029 /Timeline/ClientApp/src/app/views/common/LoadingButton.tsx | |
parent | 8c53fbcc7ad727358f9a2ad82075ffa9e902ab7e (diff) | |
download | timeline-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.tsx | 3 |
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} |