diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx b/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx index f9d609f9698..5a8a127df19 100644 --- a/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx +++ b/server/sonar-web/src/main/js/components/controls/ConfirmButton.tsx @@ -25,6 +25,7 @@ export { ChildrenProps } from './ModalButton'; interface Props { children: (props: ChildrenProps) => React.ReactNode; + cancelButtonText?: string; confirmButtonText: string; confirmData?: string; confirmDisable?: boolean; @@ -42,6 +43,7 @@ export default class ConfirmButton extends React.PureComponent<Props, State> { renderConfirmModal = ({ onClose }: ModalProps) => { return ( <ConfirmModal + cancelButtonText={this.props.cancelButtonText} confirmButtonText={this.props.confirmButtonText} confirmData={this.props.confirmData} confirmDisable={this.props.confirmDisable} |