From 29314ae8b998394b62364c8f466d65bc56dd1e5a Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 15 Sep 2016 13:40:50 +0200 Subject: [PATCH] SONAR-7999 Improve switching between parameters and response example --- .../sonar-web/src/main/js/apps/web-api/components/Action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Action.js b/server/sonar-web/src/main/js/apps/web-api/components/Action.js index 5f8b5967589..ad1d6912038 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/Action.js +++ b/server/sonar-web/src/main/js/apps/web-api/components/Action.js @@ -36,13 +36,13 @@ export default class Action extends React.Component { handleShowParamsClick (e) { e.preventDefault(); this.refs.toggleParameters.blur(); - this.setState({ showParams: !this.state.showParams }); + this.setState({ showResponse: false, showParams: !this.state.showParams }); } handleShowResponseClick (e) { e.preventDefault(); this.refs.toggleResponse.blur(); - this.setState({ showResponse: !this.state.showResponse }); + this.setState({ showParams: false, showResponse: !this.state.showResponse }); } render () { -- 2.39.5