Browse Source

disable click and change cursor style on labeling button while learning (#4)

master
rozetko 7 years ago committed by GitHub
parent
commit
aae8a6f334
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/partials/tab_analytics.html

7
src/partials/tab_analytics.html

@ -41,8 +41,11 @@
/> />
</span> </span>
<label class="gf-form-label"> <label class="gf-form-label" ng-style="anomalyType.status === 'learning' && { 'cursor': 'not-allowed' }">
<a class="pointer" tabindex="1" ng-click="ctrl.onToggleAnomalyTypeLabelingMode(anomalyType.key)"> <a class="pointer" tabindex="1"
ng-click="ctrl.onToggleAnomalyTypeLabelingMode(anomalyType.key)"
ng-disabled="anomalyType.status === 'learning'"
>
<i class="fa fa-bar-chart" ng-if="!anomalyType.saving"></i> <i class="fa fa-bar-chart" ng-if="!anomalyType.saving"></i>
<i class="fa fa-spinner fa-spin" ng-if="anomalyType.saving"></i> <i class="fa fa-spinner fa-spin" ng-if="anomalyType.saving"></i>
<b ng-if="anomalyType.selected && !anomalyType.deleteMode && !anomalyType.saving"> labeling </b> <b ng-if="anomalyType.selected && !anomalyType.deleteMode && !anomalyType.saving"> labeling </b>

Loading…
Cancel
Save