mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
rename variable
This commit is contained in:
@@ -41,7 +41,7 @@ export default class QueryEditor extends PureComponent<QueryEditorProps, any> {
|
||||
dashboard: {
|
||||
getNextQueryLetter: x => '',
|
||||
},
|
||||
hideRowButtons: true,
|
||||
hideEditorRowActions: true,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user