|
|
@ -96,7 +96,7 @@ export const ModalDialog = (props: ModalDialogProps) => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="modal-footer" data-id={`${props.id}ModalDialogModalFooter-react`}> |
|
|
|
<div className="modal-footer" data-id={`${props.id}ModalDialogModalFooter-react`}> |
|
|
|
{/* todo add autofocus ^^ */} |
|
|
|
{/* todo add autofocus ^^ */} |
|
|
|
{<span |
|
|
|
{ props.okLabel && <span |
|
|
|
data-id={`${props.id}-modal-footer-ok-react`} |
|
|
|
data-id={`${props.id}-modal-footer-ok-react`} |
|
|
|
className={'modal-ok btn btn-sm ' + (state.toggleBtn ? 'btn-dark' : 'btn-light')} |
|
|
|
className={'modal-ok btn btn-sm ' + (state.toggleBtn ? 'btn-dark' : 'btn-light')} |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
@ -107,7 +107,7 @@ export const ModalDialog = (props: ModalDialogProps) => { |
|
|
|
{props.okLabel ? props.okLabel : 'OK'} |
|
|
|
{props.okLabel ? props.okLabel : 'OK'} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
} |
|
|
|
} |
|
|
|
{<span |
|
|
|
{ props.cancelLabel && <span |
|
|
|
data-id={`${props.id}-modal-footer-cancel-react`} |
|
|
|
data-id={`${props.id}-modal-footer-cancel-react`} |
|
|
|
className={'modal-cancel btn btn-sm ' + (state.toggleBtn ? 'btn-light' : 'btn-dark')} |
|
|
|
className={'modal-cancel btn btn-sm ' + (state.toggleBtn ? 'btn-light' : 'btn-dark')} |
|
|
|
data-dismiss="modal" |
|
|
|
data-dismiss="modal" |
|
|
|