Merge remote-tracking branch 'nordeck/nic/feat/DisableModalWidgetButtons' into develop

This commit is contained in:
Travis Ralston 2021-06-23 11:21:19 -06:00
commit 9d07519214

View file

@ -63,7 +63,8 @@ export default class ModalWidgetDialog extends React.PureComponent<IProps, IStat
private appFrame: React.RefObject<HTMLIFrameElement> = React.createRef();
state: IState = {
disabledButtonIds: [],
disabledButtonIds: (this.props.widgetDefinition.buttons || []).filter(b => b.disabled)
.map(b => b.id),
};
constructor(props) {