aefis-core-ui 2.3.0-rc55 → 2.3.0-rc56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5692,6 +5692,7 @@ const ModalDialog = props => {
5692
5692
  name: props.confirmButtonText,
5693
5693
  onClick: handleConfirm,
5694
5694
  color: "primary",
5695
+ disabled: props.confirmButtonDisabled,
5695
5696
  children: props.confirmButtonText
5696
5697
  })]
5697
5698
  })]
@@ -5704,7 +5705,8 @@ ModalDialog.defaultProps = {
5704
5705
  open: false,
5705
5706
  formatContent: true,
5706
5707
  showLoadingStatus: false,
5707
- titleComponent: "h2"
5708
+ titleComponent: "h2",
5709
+ confirmButtonDisabled: false
5708
5710
  };
5709
5711
 
5710
5712
  /** AEFIS implementation of a modal dialog. */
@@ -5724,6 +5726,8 @@ ModalDialog.propTypes = {
5724
5726
  title: PropTypes.any.isRequired,
5725
5727
  /** The text to display for the confirm button. */
5726
5728
  confirmButtonText: PropTypes.string,
5729
+ /** Disable the confirm button? */
5730
+ confirmButtonDisabled: PropTypes.bool,
5727
5731
  /** The text to display for the cancel button. */
5728
5732
  cancelButtonText: PropTypes.string,
5729
5733
  /** Whether or not to format the content of the dialog. */