Skip to content

Commit

Permalink
Filters and "time based thresholds" tab merge
Browse files Browse the repository at this point in the history
  • Loading branch information
yesoreyeram committed Nov 18, 2018
1 parent 93d32ba commit bc61712
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 169 deletions.
13 changes: 5 additions & 8 deletions dist/app/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/app/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 0 additions & 70 deletions dist/partials/filters.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,31 @@ <h5 class="text-warning">Patterns</h5>
<li ng-class="{active: ctrl.panel.activePatternIndex === -1}">
<a ng-click="ctrl.panel.activePatternIndex = -1">Default</a>
</li>
<li>
<a class="pointer" ng-click="ctrl.addPattern()">
<i class="fa fa-plus"></i>&nbsp;Add
</a>
</li>
</ul>
</aside>
<div class="edit-tab-content" ng-repeat="pattern in ctrl.panel.patterns track by $index" ng-if="ctrl.panel.activePatternIndex === $index">
<div class="editor-row">
<div class="section gf-form-group">
<div class="gr-form-inline">
<div class="gf-form">
<label class="gf-form-label width-13">Hide if value is below</label>
<input type="text" placeholder="Number" class="gf-form-input width-18" ng-model="pattern.filter.value_below" bs-tooltip="'Hide values from display if below this value. Default is empty'" ng-blur="ctrl.render()">
</div>
</div>
<div class="gr-form-inline">
<div class="gf-form">
<label class="gf-form-label width-13">Hide if value is above</label>
<input type="text" placeholder="Number" class="gf-form-input width-18" ng-model="pattern.filter.value_above" bs-tooltip="'Hide values from display if above this value. Default is empty'" ng-blur="ctrl.render()">
</div>
</div>
</div>
</div>
<div class="editor-row">
<div class="section">
<h5 class="section-heading text-warning">WARNING: "Value Filters" is for advance usage. This may hide part of the data based on the input. You
can safely ignore this section if you don't know the behaviour.</h5>
</div>
</div>
<div class="editor-row">
<div class="section gf-form-group">
<div class="gr-form-inline">
Expand Down Expand Up @@ -64,11 +81,33 @@ <h5 class="section-heading text-warning">Note: If multiple matches found last wi
</div>
</div>
<div class="edit-tab-content" ng-if="ctrl.panel.activePatternIndex === -1">
<div class="editor-row">
<div class="section gf-form-group">
<div class="gr-form-inline">
<div class="gf-form">
<label class="gf-form-label width-13">Hide if value is below</label>
<input type="text" placeholder="Number" class="gf-form-input width-18" ng-model="ctrl.panel.defaultPattern.filter.value_below" bs-tooltip="'Hide values from display if below this value. Default is empty'" ng-blur="ctrl.render()">
</div>
</div>
<div class="gr-form-inline">
<div class="gf-form">
<label class="gf-form-label width-13">Hide if value is above</label>
<input type="text" placeholder="Number" class="gf-form-input width-18" ng-model="ctrl.panel.defaultPattern.filter.value_above" bs-tooltip="'Hide values from display if above this value. Default is empty'" ng-blur="ctrl.render()">
</div>
</div>
</div>
</div>
<div class="editor-row">
<div class="section">
<h5 class="section-heading text-warning">WARNING: "Value Filters" is for advance usage. This may hide part of the data based on the input. You
can safely ignore this section if you don't know the behaviour.</h5>
</div>
</div>
<div class="editor-row">
<div class="section gf-form-group">
<div class="gr-form-inline">
<div class="gf-form">
<label class="gf-form-label width-15">Enable Time based thresholds?</label>
<label class="gf-form-label width-30">Enable Time based thresholds for default pattern?</label>
<input type="checkbox" class="gf-form-input width-4" ng-model="ctrl.panel.defaultPattern.enable_time_based_thresholds" ng-blur="ctrl.render()"
ng-change="ctrl.render()">
</div>
Expand Down
13 changes: 5 additions & 8 deletions src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,15 @@ const config: any = {
name: "Patterns",
template: "/partials/patterns.html",
position: 2
},
{
name: "Time based thresholds & Filters",
template: "/partials/patterns-advanced-options.html",
position: 3
}, {
name: "Options",
template: "/partials/options.html",
position: 5
}, {
name: "Filters",
template: "/partials/filters.html",
position: 4
}, {
name: "Time based thresholds",
template: "/partials/thresholds.html",
position: 3
}],
valueNameOptions: [{
value: "min",
Expand Down
70 changes: 0 additions & 70 deletions src/partials/filters.html

This file was deleted.

Loading

0 comments on commit bc61712

Please sign in to comment.