Erik Sundell 7 éve
szülő
commit
1e6ea8b124

+ 1 - 1
public/app/features/explore/QueryEditor.tsx

@@ -41,7 +41,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
         dashboard: {
           getNextQueryLetter: x => '',
         },
-        hideRowButtons: true,
+        hideEditorRowActions: true,
       },
     };
 

+ 2 - 2
public/app/features/panel/partials/query_editor_row.html

@@ -1,5 +1,5 @@
 <div class="gf-form-query">
-  <div ng-if="!ctrl.hideRowButtons" class="gf-form gf-form-query-letter-cell">
+  <div ng-if="!ctrl.hideEditorRowActions" class="gf-form gf-form-query-letter-cell">
     <label class="gf-form-label">
       <a class="pointer" tabindex="1" ng-click="ctrl.toggleCollapse()">
         <span ng-class="{muted: !ctrl.canCollapse}" class="gf-form-query-letter-cell-carret">
@@ -22,7 +22,7 @@
 
   <div ng-transclude class="gf-form-query-content" ng-if="!ctrl.collapsed"></div>
 
-  <div ng-if="!ctrl.hideRowButtons" class="gf-form">
+  <div ng-if="!ctrl.hideEditorRowActions" class="gf-form">
     <label class="gf-form-label dropdown">
       <a class="pointer dropdown-toggle" data-toggle="dropdown" tabindex="1"> <i class="fa fa-bars"></i> </a>
       <ul class="dropdown-menu pull-right" role="menu">

+ 2 - 2
public/app/features/panel/query_editor_row.ts

@@ -11,13 +11,13 @@ export class QueryRowCtrl {
   panelCtrl: any;
   panel: any;
   collapsed: any;
-  hideRowButtons: boolean;
+  hideEditorRowActions: boolean;
 
   constructor() {
     this.panelCtrl = this.queryCtrl.panelCtrl;
     this.target = this.queryCtrl.target;
     this.panel = this.panelCtrl.panel;
-    this.hideRowButtons = this.panelCtrl.hideRowButtons;
+    this.hideEditorRowActions = this.panelCtrl.hideEditorRowActions;
 
     if (!this.target.refId) {
       this.target.refId = this.panelCtrl.dashboard.getNextQueryLetter(this.panel);