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. 9
      src/partials/tab_analytics.html

9
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>
@ -56,7 +59,7 @@
<label <label
class="gf-form-label text-center" class="gf-form-label text-center"
style="width: 4rem" style="width: 4rem"
ng-if="anomalyType.alertEnabled === undefined" ng-if="anomalyType.alertEnabled === undefined"
bs-tooltip="'Alarting status isn`t available. Wait please.'" bs-tooltip="'Alarting status isn`t available. Wait please.'"
> >
<i class="fa fa-spinner fa-spin"></i> <i class="fa fa-spinner fa-spin"></i>

Loading…
Cancel
Save