rename variable

This commit is contained in:
Erik Sundell
2018-11-23 15:15:41 +01:00
parent 65c744c39f
commit 1e6ea8b124
3 changed files with 5 additions and 5 deletions

View File

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

View File

@@ -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">

View File

@@ -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);