Skip to content

Commit

Permalink
Detect / Save buttons -> Apply #347 (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
rozetko authored Jul 4, 2019
1 parent e55ef78 commit 6871b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
17 changes: 1 addition & 16 deletions src/panel/graph_panel/partials/analytic_units_5.x.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)) &&
Expand Down Expand Up @@ -138,7 +123,7 @@
ng-disabled="analyticUnit.status === 'LEARNING' || analyticUnit.saving"
>
<a class="pointer">
Detect
Apply
</a>
</label>
</div>
Expand Down
17 changes: 1 addition & 16 deletions src/panel/graph_panel/partials/analytic_units_6.x.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)) &&
Expand Down Expand Up @@ -126,7 +111,7 @@
ng-disabled="analyticUnit.status === 'LEARNING' || analyticUnit.saving"
>
<a class="pointer">
Detect
Apply
</a>
</button>
</div>
Expand Down

0 comments on commit 6871b3d

Please sign in to comment.