mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Add partial import functionality (#812)
This commit is contained in:
@@ -17,6 +17,7 @@ interface IModal {
|
||||
cancel?: IButton;
|
||||
accept?: IButton;
|
||||
isRunning?: boolean;
|
||||
disabled?: boolean;
|
||||
modalProps?: ModalProps;
|
||||
}
|
||||
|
||||
@@ -29,6 +30,7 @@ const ModalComponent: React.FC<IModal> = ({
|
||||
accept,
|
||||
onHide,
|
||||
isRunning,
|
||||
disabled,
|
||||
modalProps,
|
||||
}) => (
|
||||
<Modal keyboard={false} onHide={onHide} show={show} {...modalProps}>
|
||||
@@ -51,7 +53,7 @@ const ModalComponent: React.FC<IModal> = ({
|
||||
""
|
||||
)}
|
||||
<Button
|
||||
disabled={isRunning}
|
||||
disabled={isRunning || disabled}
|
||||
variant={accept?.variant ?? "primary"}
|
||||
onClick={accept?.onClick}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user