Browse Source

react-panel: Remove mock response button for now

Johannes Schill 7 years ago
parent
commit
b7fcef3351
1 changed files with 2 additions and 6 deletions
  1. 2 6
      public/app/features/dashboard/dashgrid/QueryInspector.tsx

+ 2 - 6
public/app/features/dashboard/dashgrid/QueryInspector.tsx

@@ -188,9 +188,11 @@ export class QueryInspector extends PureComponent<Props, State> {
     return (
       <>
         <div>
+          {/*
           <button className="btn btn-transparent btn-p-x-0 m-r-1" onClick={this.onToggleMocking}>
             Mock response
           </button>
+          */}
           <button className="btn btn-transparent btn-p-x-0 m-r-1" onClick={this.onToggleExpand}>
             {this.renderExpandCollapse()}
           </button>
@@ -215,12 +217,6 @@ export class QueryInspector extends PureComponent<Props, State> {
                 onInput={this.setMockedResponse}
                 placeholder="JSON"
               />
-              {/* <textarea
-                className="gf-form-input"
-                style={{width: '95%'}}
-                rows={10}
-                ng-model="ctrl.mockedResponse"
-                placeholder="JSON"></textarea> */}
             </div>
           </div>
         )}