Browse Source

Tooltips for delete, save and detect #341 (#373)

master
Samesh Lakhotia 5 years ago committed by rozetko
parent
commit
b8661bb186
  1. 6
      src/panel/graph_panel/partials/analytic_units_5.x.html
  2. 15
      src/panel/graph_panel/partials/analytic_units_6.x.html

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

@ -84,7 +84,7 @@
<label class="gf-form-label"> <label class="gf-form-label">
<a class="pointer" ng-click="ctrl.onRemove(analyticUnit.id)" role="menuitem"> <a class="pointer" ng-click="ctrl.onRemove(analyticUnit.id)" role="menuitem">
<i class="fa fa-trash"></i> <i class="fa fa-trash" bs-tooltip="'Delete'" ></i>
</a> </a>
</label> </label>
@ -92,7 +92,7 @@
(analyticUnit.detectorType === 'pattern' || (analyticUnit.detectorType === 'pattern' ||
(analyticUnit.detectorType === 'anomaly' && analyticUnit.hasSeasonality)) && (analyticUnit.detectorType === 'anomaly' && analyticUnit.hasSeasonality)) &&
!analyticUnit.selected !analyticUnit.selected
"> " bs-tooltip="'Save'" >
<a <a
class="pointer" class="pointer"
ng-style="analyticUnit.status === 'LEARNING' && { 'cursor': 'not-allowed' }" ng-style="analyticUnit.status === 'LEARNING' && { 'cursor': 'not-allowed' }"
@ -112,7 +112,7 @@
ng-disabled="analyticUnit.status === 'LEARNING'" ng-disabled="analyticUnit.status === 'LEARNING'"
/> />
<label class="gf-form-label" ng-if="analyticUnit.selected && !analyticUnit.saving"> <label class="gf-form-label" ng-if="analyticUnit.selected && !analyticUnit.saving" bs-tooltip="'Learn & Detect'">
<a class="pointer" ng-click="ctrl.onCancelLabeling(analyticUnit.id)"> <a class="pointer" ng-click="ctrl.onCancelLabeling(analyticUnit.id)">
<i class="fa fa-ban"></i> <i class="fa fa-ban"></i>
</a> </a>

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

@ -70,7 +70,10 @@
</a> </a>
</button> </button>
<button class="query-editor-row__action" ng-click="ctrl.onRemove(analyticUnit.id)"> <button class="query-editor-row__action"
ng-click="ctrl.onRemove(analyticUnit.id)"
bs-tooltip="'Delete'"
>
<a class="pointer"> <a class="pointer">
<i class="fa fa-fw fa-trash"></i> <i class="fa fa-fw fa-trash"></i>
</a> </a>
@ -79,8 +82,9 @@
<button class="query-editor-row__action" ng-if=" <button class="query-editor-row__action" ng-if="
(analyticUnit.detectorType === 'pattern' || (analyticUnit.detectorType === 'pattern' ||
(analyticUnit.detectorType === 'anomaly' && analyticUnit.hasSeasonality)) && (analyticUnit.detectorType === 'anomaly' && analyticUnit.hasSeasonality)) &&
!analyticUnit.selected !analyticUnit.selected"
"> bs-tooltip="'Save'"
>
<a <a
class="pointer" class="pointer"
ng-style="analyticUnit.status === 'LEARNING' && { 'cursor': 'not-allowed' }" ng-style="analyticUnit.status === 'LEARNING' && { 'cursor': 'not-allowed' }"
@ -100,7 +104,10 @@
ng-disabled="analyticUnit.status === 'LEARNING'" ng-disabled="analyticUnit.status === 'LEARNING'"
/> />
<button class="query-editor-row__action" ng-if="analyticUnit.selected && !analyticUnit.saving"> <button class="query-editor-row__action"
ng-if="analyticUnit.selected && !analyticUnit.saving"
bs-tooltip="'Learn & Detect'"
>
<a class="pointer" ng-click="ctrl.onCancelLabeling(analyticUnit.id)"> <a class="pointer" ng-click="ctrl.onCancelLabeling(analyticUnit.id)">
<i class="fa fa-fw fa-ban"></i> <i class="fa fa-fw fa-ban"></i>
</a> </a>

Loading…
Cancel
Save