Commit 1e6ea8b1 by Erik Sundell

rename variable

parent 65c744c3
...@@ -41,7 +41,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> { ...@@ -41,7 +41,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
dashboard: { dashboard: {
getNextQueryLetter: x => '', getNextQueryLetter: x => '',
}, },
hideRowButtons: true, hideEditorRowActions: true,
}, },
}; };
......
<div class="gf-form-query"> <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"> <label class="gf-form-label">
<a class="pointer" tabindex="1" ng-click="ctrl.toggleCollapse()"> <a class="pointer" tabindex="1" ng-click="ctrl.toggleCollapse()">
<span ng-class="{muted: !ctrl.canCollapse}" class="gf-form-query-letter-cell-carret"> <span ng-class="{muted: !ctrl.canCollapse}" class="gf-form-query-letter-cell-carret">
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div ng-transclude class="gf-form-query-content" ng-if="!ctrl.collapsed"></div> <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"> <label class="gf-form-label dropdown">
<a class="pointer dropdown-toggle" data-toggle="dropdown" tabindex="1"> <i class="fa fa-bars"></i> </a> <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"> <ul class="dropdown-menu pull-right" role="menu">
......
...@@ -11,13 +11,13 @@ export class QueryRowCtrl { ...@@ -11,13 +11,13 @@ export class QueryRowCtrl {
panelCtrl: any; panelCtrl: any;
panel: any; panel: any;
collapsed: any; collapsed: any;
hideRowButtons: boolean; hideEditorRowActions: boolean;
constructor() { constructor() {
this.panelCtrl = this.queryCtrl.panelCtrl; this.panelCtrl = this.queryCtrl.panelCtrl;
this.target = this.queryCtrl.target; this.target = this.queryCtrl.target;
this.panel = this.panelCtrl.panel; this.panel = this.panelCtrl.panel;
this.hideRowButtons = this.panelCtrl.hideRowButtons; this.hideEditorRowActions = this.panelCtrl.hideEditorRowActions;
if (!this.target.refId) { if (!this.target.refId) {
this.target.refId = this.panelCtrl.dashboard.getNextQueryLetter(this.panel); this.target.refId = this.panelCtrl.dashboard.getNextQueryLetter(this.panel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment