2016-04-17 11:14:25 -05:00
|
|
|
<div class="query-editor-rows gf-form-group">
|
2016-04-17 16:17:30 -05:00
|
|
|
<div ng-repeat="target in ctrl.panel.targets" ng-class="{'gf-form-disabled': target.hide}">
|
2016-04-17 11:14:25 -05:00
|
|
|
<rebuild-on-change property="ctrl.panel.datasource || target.datasource" show-null="true">
|
|
|
|
<plugin-component type="query-ctrl">
|
|
|
|
</plugin-component>
|
|
|
|
</rebuild-on-change>
|
2017-05-19 14:32:23 -05:00
|
|
|
</div>
|
2014-03-02 03:41:16 -06:00
|
|
|
|
2017-05-19 14:32:23 -05:00
|
|
|
<div class="gf-form-query">
|
|
|
|
<div class="gf-form gf-form-query-letter-cell">
|
|
|
|
<label class="gf-form-label">
|
|
|
|
<span class="gf-form-query-letter-cell-carret">
|
|
|
|
<i class="fa fa-caret-down"></i>
|
|
|
|
</span>
|
2017-05-20 03:14:41 -05:00
|
|
|
<span class="gf-form-query-letter-cell-letter">{{ctrl.panelCtrl.nextRefId}}</span>
|
2017-05-19 14:32:23 -05:00
|
|
|
</label>
|
2017-06-13 17:31:43 -05:00
|
|
|
<button class="btn btn-secondary gf-form-btn" ng-click="ctrl.addQuery()" ng-hide="ctrl.current.meta.mixed">
|
|
|
|
Add Query
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<div class="dropdown" ng-if="ctrl.current.meta.mixed">
|
2017-06-14 18:42:45 -05:00
|
|
|
<gf-form-dropdown model="ctrl.addQueryDropdown"
|
|
|
|
get-options="ctrl.getOptions(false)"
|
|
|
|
on-change="ctrl.addMixedQuery($option)">
|
|
|
|
</gf-form-dropdown>
|
2017-06-13 17:31:43 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-02 03:41:16 -06:00
|
|
|
</div>
|
2016-04-17 11:14:25 -05:00
|
|
|
|
2017-06-13 17:31:43 -05:00
|
|
|
<!-- <query-troubleshooter panel-ctrl="ctrl.panelCtrl"></query-troubleshooter> -->
|
|
|
|
|
|
|
|
<div class="gf-form-group">
|
|
|
|
<div class="gf-form-inline">
|
|
|
|
<div class="gf-form">
|
2017-06-14 18:42:45 -05:00
|
|
|
<label class="gf-form-label">Panel Data Source</label>
|
|
|
|
<gf-form-dropdown model="ctrl.panelDsValue"
|
2017-06-15 14:56:24 -05:00
|
|
|
lookup-text="true"
|
2017-06-14 18:42:45 -05:00
|
|
|
get-options="ctrl.getOptions(true)"
|
2017-06-15 13:03:26 -05:00
|
|
|
on-change="ctrl.datasourceChanged($option)">
|
2017-06-14 18:42:45 -05:00
|
|
|
</gf-form-dropdown>
|
2017-06-13 17:31:43 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-19 14:32:23 -05:00
|
|
|
|
2017-06-13 17:31:43 -05:00
|
|
|
<rebuild-on-change property="ctrl.panel.datasource" show-null="true">
|
|
|
|
<plugin-component type="query-options-ctrl">
|
|
|
|
</plugin-component>
|
|
|
|
</rebuild-on-change>
|
|
|
|
</div>
|