Parcourir la source

hide Query Builder button for table panels

Sven Klemm il y a 7 ans
Parent
commit
aadff18e94

+ 1 - 1
public/app/plugins/datasource/postgres/partials/query.editor.html

@@ -106,7 +106,7 @@
       </div>
     </div>
     <div class="gf-form">
-      <label class="gf-form-label query-keyword pointer" ng-click="ctrl.toggleEditorMode()">
+      <label class="gf-form-label query-keyword pointer" ng-click="ctrl.toggleEditorMode()" ng-show="ctrl.panelCtrl.panel.type !== 'table'">
         <span ng-show="ctrl.target.rawQuery">Query Builder</span>
         <span ng-hide="ctrl.target.rawQuery">Edit SQL</span>
       </label>