Explorar el Código

Merge with master

Hugo Häggmark hace 7 años
padre
commit
d9578bc485

+ 9 - 3
public/app/plugins/datasource/loki/components/LokiQueryEditor.tsx

@@ -33,7 +33,7 @@ export class LokiQueryEditor extends PureComponent<Props> {
       query: {
       query: {
         ...this.state.query,
         ...this.state.query,
         expr: query.expr,
         expr: query.expr,
-      }
+      },
     });
     });
   };
   };
 
 
@@ -61,12 +61,18 @@ export class LokiQueryEditor extends PureComponent<Props> {
           datasource={datasource}
           datasource={datasource}
           initialQuery={query}
           initialQuery={query}
           onQueryChange={this.onFieldChange}
           onQueryChange={this.onFieldChange}
-          onPressEnter={this.onRunQuery}
+          onExecuteQuery={this.onRunQuery}
+          history={[]}
         />
         />
         <div className="gf-form-inline">
         <div className="gf-form-inline">
           <div className="gf-form">
           <div className="gf-form">
             <div className="gf-form-label">Format as</div>
             <div className="gf-form-label">Format as</div>
-            <Select isSearchable={false} options={formatOptions} onChange={this.onFormatChanged} value={currentFormat} />
+            <Select
+              isSearchable={false}
+              options={formatOptions}
+              onChange={this.onFormatChanged}
+              value={currentFormat}
+            />
           </div>
           </div>
           <div className="gf-form gf-form--grow">
           <div className="gf-form gf-form--grow">
             <div className="gf-form-label gf-form-label--grow" />
             <div className="gf-form-label gf-form-label--grow" />