mirror of
https://github.com/stashapp/stash.git
synced 2026-02-10 09:24:09 +01:00
Revert modal button order change (#4400)
This commit is contained in:
parent
f32d60f208
commit
82cbeff9b5
1 changed files with 18 additions and 18 deletions
|
|
@ -60,24 +60,6 @@ export const ModalComponent: React.FC<IModal> = ({
|
|||
<div>{leftFooterButtons}</div>
|
||||
<div>
|
||||
{footerButtons}
|
||||
<Button
|
||||
disabled={isRunning || disabled}
|
||||
variant={accept?.variant ?? "primary"}
|
||||
onClick={accept?.onClick}
|
||||
className="ml-2"
|
||||
>
|
||||
{isRunning ? (
|
||||
<Spinner animation="border" role="status" size="sm" />
|
||||
) : (
|
||||
accept?.text ?? (
|
||||
<FormattedMessage
|
||||
id="actions.close"
|
||||
defaultMessage="Close"
|
||||
description="Closes the current modal."
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</Button>
|
||||
{cancel ? (
|
||||
<Button
|
||||
disabled={isRunning}
|
||||
|
|
@ -96,6 +78,24 @@ export const ModalComponent: React.FC<IModal> = ({
|
|||
) : (
|
||||
""
|
||||
)}
|
||||
<Button
|
||||
disabled={isRunning || disabled}
|
||||
variant={accept?.variant ?? "primary"}
|
||||
onClick={accept?.onClick}
|
||||
className="ml-2"
|
||||
>
|
||||
{isRunning ? (
|
||||
<Spinner animation="border" role="status" size="sm" />
|
||||
) : (
|
||||
accept?.text ?? (
|
||||
<FormattedMessage
|
||||
id="actions.close"
|
||||
defaultMessage="Close"
|
||||
description="Closes the current modal."
|
||||
/>
|
||||
)
|
||||
)}
|
||||
</Button>
|
||||
</div>
|
||||
</Modal.Footer>
|
||||
</Modal>
|
||||
|
|
|
|||
Loading…
Reference in a new issue