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

View File

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