Browse Source

Detect / Save buttons -> Apply #347 (#356)

master
rozetko 5 years ago committed by GitHub
parent
commit
6871b3df48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      src/panel/graph_panel/partials/analytic_units_5.x.html
  2. 17
      src/panel/graph_panel/partials/analytic_units_6.x.html

17
src/panel/graph_panel/partials/analytic_units_5.x.html

@ -88,21 +88,6 @@
</a>
</label>
<label class="gf-form-label"
ng-style="!analyticUnit.changed && { 'cursor': 'not-allowed' }"
>
<!-- TODO: different disabled colors for light and dark themes -->
<a class="pointer"
ng-click="ctrl.onAnalyticUnitSave(analyticUnit)"
ng-disabled="!analyticUnit.changed"
ng-style="!analyticUnit.changed && { 'color': 'gray' }"
role="menuitem"
>
<i class="fa fa-spinner fa-spin" ng-if="analyticUnit.saving"></i>
<i class="fa fa-save"ng-if="!analyticUnit.saving"></i>
</a>
</label>
<div class="gf-form-label" ng-if="
(analyticUnit.detectorType === 'pattern' ||
(analyticUnit.detectorType === 'anomaly' && analyticUnit.hasSeasonality)) &&
@ -138,7 +123,7 @@
ng-disabled="analyticUnit.status === 'LEARNING' || analyticUnit.saving"
>
<a class="pointer">
Detect
Apply
</a>
</label>
</div>

17
src/panel/graph_panel/partials/analytic_units_6.x.html

@ -76,21 +76,6 @@
</a>
</button>
<button class="query-editor-row__action"
ng-click="ctrl.onAnalyticUnitSave(analyticUnit)"
ng-disabled="!analyticUnit.changed"
>
<a class="pointer"
ng-style="!analyticUnit.changed && {
'color': 'gray',
'cursor': 'not-allowed'
}"
>
<i class="fa fa-fw fa-spinner fa-spin" ng-if="analyticUnit.saving"></i>
<i class="fa fa-fw fa-save" ng-if="!analyticUnit.saving"></i>
</a>
</button>
<button class="query-editor-row__action" ng-if="
(analyticUnit.detectorType === 'pattern' ||
(analyticUnit.detectorType === 'anomaly' && analyticUnit.hasSeasonality)) &&
@ -126,7 +111,7 @@
ng-disabled="analyticUnit.status === 'LEARNING' || analyticUnit.saving"
>
<a class="pointer">
Detect
Apply
</a>
</button>
</div>

Loading…
Cancel
Save