Browse Source

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

master
rozetko 6 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>
<label class="gf-form-label">
<a class="pointer" tabindex="1" ng-click="ctrl.onToggleAnomalyTypeLabelingMode(anomalyType.key)">
<label class="gf-form-label" ng-style="anomalyType.status === 'learning' && { 'cursor': 'not-allowed' }">
<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-spinner fa-spin" ng-if="anomalyType.saving"></i>
<b ng-if="anomalyType.selected && !anomalyType.deleteMode && !anomalyType.saving"> labeling </b>
@ -56,7 +59,7 @@
<label
class="gf-form-label text-center"
style="width: 4rem"
ng-if="anomalyType.alertEnabled === undefined"
ng-if="anomalyType.alertEnabled === undefined"
bs-tooltip="'Alarting status isn`t available. Wait please.'"
>
<i class="fa fa-spinner fa-spin"></i>

Loading…
Cancel
Save