mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Identify task (#1839)
* Add identify task * Change type naming * Debounce folder select text input * Add generic slice comparison function
This commit is contained in:
@@ -21,6 +21,8 @@ interface IModal {
|
||||
disabled?: boolean;
|
||||
modalProps?: ModalProps;
|
||||
dialogClassName?: string;
|
||||
footerButtons?: React.ReactNode;
|
||||
leftFooterButtons?: React.ReactNode;
|
||||
}
|
||||
|
||||
const defaultOnHide = () => {};
|
||||
@@ -37,8 +39,11 @@ const ModalComponent: React.FC<IModal> = ({
|
||||
disabled,
|
||||
modalProps,
|
||||
dialogClassName,
|
||||
footerButtons,
|
||||
leftFooterButtons,
|
||||
}) => (
|
||||
<Modal
|
||||
className="ModalComponent"
|
||||
keyboard={false}
|
||||
onHide={onHide ?? defaultOnHide}
|
||||
show={show}
|
||||
@@ -50,14 +55,16 @@ const ModalComponent: React.FC<IModal> = ({
|
||||
<span>{header ?? ""}</span>
|
||||
</Modal.Header>
|
||||
<Modal.Body>{children}</Modal.Body>
|
||||
<Modal.Footer>
|
||||
<Modal.Footer className="ModalFooter">
|
||||
<div>{leftFooterButtons}</div>
|
||||
<div>
|
||||
{footerButtons}
|
||||
{cancel ? (
|
||||
<Button
|
||||
disabled={isRunning}
|
||||
variant={cancel.variant ?? "primary"}
|
||||
onClick={cancel.onClick}
|
||||
className="mr-2"
|
||||
className="ml-2"
|
||||
>
|
||||
{cancel.text ?? (
|
||||
<FormattedMessage
|
||||
|
||||
Reference in New Issue
Block a user