mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
31 lines
2.1 KiB
HTML
31 lines
2.1 KiB
HTML
<div>
|
|
<div class="section gf-form-group">
|
|
<h5 class="section-heading">Options</h5>
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-8">Show</span>
|
|
<div class="gf-form-select-wrapper max-width-15">
|
|
<select class="gf-form-input" ng-model="ctrl.panel.show" ng-options="f.value as f.text for f in ctrl.showOptions" ng-change="ctrl.onRefresh()"></select>
|
|
</div>
|
|
</div>
|
|
<div class="gf-form">
|
|
<span class="gf-form-label width-8">Max items</span>
|
|
<input type="text" class="gf-form-input max-width-15" ng-model="ctrl.panel.limit" ng-change="ctrl.onRefresh()" />
|
|
</div>
|
|
<div class="gf-form" ng-show="ctrl.panel.show === 'current'">
|
|
<span class="gf-form-label width-8">Sort order</span>
|
|
<div class="gf-form-select-wrapper max-width-15">
|
|
<select class="gf-form-input" ng-model="ctrl.panel.sortOrder" ng-options="f.value as f.text for f in ctrl.sortOrderOptions" ng-change="ctrl.onRefresh()"></select>
|
|
</div>
|
|
</div>
|
|
<gf-form-switch class="gf-form" label="Alerts from this dashboard" label-class="width-18" checked="ctrl.panel.onlyAlertsOnDashboard" on-change="ctrl.updateStateFilter()"></gf-form-switch>
|
|
</div>
|
|
<div class="section gf-form-group" ng-show="ctrl.panel.show === 'current'">
|
|
<h5 class="section-heading">State filter</h5>
|
|
<gf-form-switch class="gf-form" label="Ok" label-class="width-10" checked="ctrl.stateFilter['ok']" on-change="ctrl.updateStateFilter()"></gf-form-switch>
|
|
<gf-form-switch class="gf-form" label="Paused" label-class="width-10" checked="ctrl.stateFilter['paused']" on-change="ctrl.updateStateFilter()"></gf-form-switch>
|
|
<gf-form-switch class="gf-form" label="No data" label-class="width-10" checked="ctrl.stateFilter['no_data']" on-change="ctrl.updateStateFilter()"></gf-form-switch>
|
|
<gf-form-switch class="gf-form" label="Execution error" label-class="width-10" checked="ctrl.stateFilter['execution_error']" on-change="ctrl.updateStateFilter()"></gf-form-switch>
|
|
<gf-form-switch class="gf-form" label="Alerting" label-class="width-10" checked="ctrl.stateFilter['alerting']" on-change="ctrl.updateStateFilter()"></gf-form-switch>
|
|
</div>
|
|
</div>
|