]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7999 Improve switching between parameters and response example
authorStas Vilchik <vilchiks@gmail.com>
Thu, 15 Sep 2016 11:40:50 +0000 (13:40 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 16 Sep 2016 08:22:24 +0000 (10:22 +0200)
server/sonar-web/src/main/js/apps/web-api/components/Action.js

index 5f8b59675893eeff0209aebfc8e4265943cbb9fc..ad1d69120382e3142fbc54118e50bf5c85eec3c4 100644 (file)
@@ -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 () {