From c5a3df9b035f3aa47571236aefea8108ea4e4ad4 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 3 Sep 2020 22:49:55 +0800
Subject: ...

---
 Timeline/ClientApp/src/app/views/common/LoadingButton.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'Timeline/ClientApp/src/app/views/common/LoadingButton.tsx')

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}
-- 
cgit v1.2.3

