|
|
@@ -102,6 +102,7 @@ const LoadingText = styled.div`
|
|
|
class Endpoint extends React.Component {
|
|
|
static propTypes = {
|
|
|
type: PropTypes.string,
|
|
|
+ cancelButtonText: PropTypes.string,
|
|
|
deleteOnCancel: PropTypes.bool,
|
|
|
endpoint: PropTypes.object,
|
|
|
connectionInfo: PropTypes.object,
|
|
|
@@ -113,6 +114,10 @@ class Endpoint extends React.Component {
|
|
|
providerStore: PropTypes.object,
|
|
|
}
|
|
|
|
|
|
+ static defaultProps = {
|
|
|
+ cancelButtonText: 'Cancel',
|
|
|
+ }
|
|
|
+
|
|
|
static getStores() {
|
|
|
return [EndpointStore, ProviderStore]
|
|
|
}
|
|
|
@@ -425,7 +430,7 @@ class Endpoint extends React.Component {
|
|
|
{Tooltip.rebuild()}
|
|
|
</Fields>
|
|
|
<Buttons>
|
|
|
- <Button large secondary onClick={() => { this.handleCancelClick() }}>Cancel</Button>
|
|
|
+ <Button large secondary onClick={() => { this.handleCancelClick() }}>{this.props.cancelButtonText}</Button>
|
|
|
{this.renderActionButton()}
|
|
|
</Buttons>
|
|
|
</Content>
|