Merge "feat: add attributes to the ModalAction"

This commit is contained in:
Zuul 2023-01-29 11:58:15 +00:00 committed by Gerrit Code Review
commit fbc8fde808

View File

@ -455,7 +455,15 @@ export class ActionButton extends Component {
if (!visible) { if (!visible) {
return null; return null;
} }
const { title, action, item, containerProps, items } = this.props; const {
title,
action,
item,
containerProps,
items,
onFinishAction,
onCancelAction,
} = this.props;
const ActionComponent = action; const ActionComponent = action;
const { const {
okText, okText,
@ -493,6 +501,9 @@ export class ActionButton extends Component {
items={items} items={items}
ref={this.formRef} ref={this.formRef}
containerProps={containerProps} containerProps={containerProps}
onFinishAction={onFinishAction}
onCancelAction={onCancelAction}
modalProps={modalProps}
/> />
</Modal> </Modal>
); );