From 3f06bb50fb31951f83dd6b78fa20aee77b6169f7 Mon Sep 17 00:00:00 2001 From: yshkk Date: Wed, 4 Jul 2018 13:53:21 -0400 Subject: [PATCH] fix: exchange function name of component Try-it-out (#4687) --- src/core/components/try-it-out-button.jsx | 4 ++-- src/core/containers/OperationContainer.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/components/try-it-out-button.jsx b/src/core/components/try-it-out-button.jsx index e2b66294..d52e8e75 100644 --- a/src/core/components/try-it-out-button.jsx +++ b/src/core/components/try-it-out-button.jsx @@ -21,8 +21,8 @@ export default class TryItOutButton extends React.Component { return (
{ - enabled ? - : + enabled ? + : }
) diff --git a/src/core/containers/OperationContainer.jsx b/src/core/containers/OperationContainer.jsx index 06ab130b..a2ae9cce 100644 --- a/src/core/containers/OperationContainer.jsx +++ b/src/core/containers/OperationContainer.jsx @@ -113,11 +113,11 @@ export default class OperationContainer extends PureComponent { layoutActions.show(["operations", tag, operationId], !isShown) } - onTryoutClick =() => { + onCancelClick=() => { this.setState({tryItOutEnabled: !this.state.tryItOutEnabled}) } - onCancelClick =() => { + onTryoutClick =() => { let { specActions, path, method } = this.props this.setState({tryItOutEnabled: !this.state.tryItOutEnabled}) specActions.clearValidateParams([path, method])