|
|
@ -23,7 +23,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<label class="gf-form-label width-4"> Type </label> |
|
|
|
<label class="gf-form-label width-4"> Type </label> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<select class="gf-form-input width-12" |
|
|
|
<select class="gf-form-input width-10" |
|
|
|
ng-model="analyticUnit.type" |
|
|
|
ng-model="analyticUnit.type" |
|
|
|
ng-options="type.value as type.name for type in ctrl.analyticUnitTypes[analyticUnit.detectorType]" |
|
|
|
ng-options="type.value as type.name for type in ctrl.analyticUnitTypes[analyticUnit.detectorType]" |
|
|
|
ng-disabled="true" |
|
|
|
ng-disabled="true" |
|
|
@ -39,7 +39,7 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
--> |
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
|
<label class="gf-form-label width-8"> Labeled Color </label> |
|
|
|
<label class="gf-form-label width-8"> Positive Color </label> |
|
|
|
<span class="gf-form-label"> |
|
|
|
<span class="gf-form-label"> |
|
|
|
<color-picker |
|
|
|
<color-picker |
|
|
|
color="analyticUnit.labeledColor" |
|
|
|
color="analyticUnit.labeledColor" |
|
|
@ -50,7 +50,7 @@ |
|
|
|
<!-- Hack to avoid Grafana's .gf-form-label + .gf-form-label css. Fix for https://github.com/hastic/hastic-grafana-app/issues/192 --> |
|
|
|
<!-- Hack to avoid Grafana's .gf-form-label + .gf-form-label css. Fix for https://github.com/hastic/hastic-grafana-app/issues/192 --> |
|
|
|
<div></div> |
|
|
|
<div></div> |
|
|
|
|
|
|
|
|
|
|
|
<label class="gf-form-label width-8"> Deleted Color </label> |
|
|
|
<label class="gf-form-label width-8"> Negative Color </label> |
|
|
|
<span class="gf-form-label"> |
|
|
|
<span class="gf-form-label"> |
|
|
|
<color-picker |
|
|
|
<color-picker |
|
|
|
color="analyticUnit.deletedColor" |
|
|
|
color="analyticUnit.deletedColor" |
|
|
@ -69,13 +69,21 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<i class="fa fa-bar-chart" ng-if="!analyticUnit.saving"></i> |
|
|
|
<i class="fa fa-bar-chart" ng-if="!analyticUnit.saving"></i> |
|
|
|
<i class="fa fa-spinner fa-spin" ng-if="analyticUnit.saving"></i> |
|
|
|
<i class="fa fa-spinner fa-spin" ng-if="analyticUnit.saving"></i> |
|
|
|
<b ng-if="analyticUnit.selected && analyticUnit.labelingMode === 'LABELING' && !analyticUnit.saving"> labeling </b> |
|
|
|
|
|
|
|
<b ng-if="analyticUnit.selected && analyticUnit.labelingMode === 'DELETING' && !analyticUnit.saving"> deleting </b> |
|
|
|
|
|
|
|
<b ng-if="analyticUnit.selected && analyticUnit.labelingMode === 'UNLABELING' && !analyticUnit.saving"> unlabeling </b> |
|
|
|
|
|
|
|
<b ng-if="analyticUnit.saving" ng-disabled="true"> saving... </b> |
|
|
|
<b ng-if="analyticUnit.saving" ng-disabled="true"> saving... </b> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</label> |
|
|
|
</label> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select class="gf-form-input width-10" |
|
|
|
|
|
|
|
ng-model="ctrl.analyticsController.labelingMode" |
|
|
|
|
|
|
|
ng-options="type.value as type.name for type in [ |
|
|
|
|
|
|
|
{ name:'Label Positive', value: 'LABELING' }, |
|
|
|
|
|
|
|
{ name:'Label Negative', value: 'DELETING' }, |
|
|
|
|
|
|
|
{ name:'Unlabel', value: 'UNLABELING' } |
|
|
|
|
|
|
|
]" |
|
|
|
|
|
|
|
ng-if="analyticUnit.selected && !analyticUnit.saving" |
|
|
|
|
|
|
|
ng-disabled="analyticUnit.status === 'LEARNING'" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<select class="gf-form-input width-7" |
|
|
|
<select class="gf-form-input width-7" |
|
|
|
ng-model="ctrl.analyticsController.getThreshold(analyticUnit.id).condition" |
|
|
|
ng-model="ctrl.analyticsController.getThreshold(analyticUnit.id).condition" |
|
|
|
ng-options="type for type in ctrl.analyticsController.conditions" |
|
|
|
ng-options="type for type in ctrl.analyticsController.conditions" |
|
|
@ -100,10 +108,9 @@ |
|
|
|
Apply |
|
|
|
Apply |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<label class="gf-form-label"> |
|
|
|
<label class="gf-form-label" ng-hide="analyticUnit.selected"> |
|
|
|
<a |
|
|
|
<a |
|
|
|
ng-if="analyticUnit.visible" |
|
|
|
ng-if="analyticUnit.visible" |
|
|
|
ng-disabled="analyticUnit.selected" |
|
|
|
|
|
|
|
bs-tooltip="'Hide. It`s visible now.'" |
|
|
|
bs-tooltip="'Hide. It`s visible now.'" |
|
|
|
ng-click="ctrl.onToggleVisibility(analyticUnit.id)" |
|
|
|
ng-click="ctrl.onToggleVisibility(analyticUnit.id)" |
|
|
|
class="pointer" |
|
|
|
class="pointer" |
|
|
@ -113,7 +120,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
<a |
|
|
|
<a |
|
|
|
ng-if="!analyticUnit.visible" |
|
|
|
ng-if="!analyticUnit.visible" |
|
|
|
ng-disabled="analyticUnit.selected" |
|
|
|
|
|
|
|
bs-tooltip="'Show. It`s hidden now.'" |
|
|
|
bs-tooltip="'Show. It`s hidden now.'" |
|
|
|
ng-click="ctrl.onToggleVisibility(analyticUnit.id)" |
|
|
|
ng-click="ctrl.onToggleVisibility(analyticUnit.id)" |
|
|
|
class="pointer" |
|
|
|
class="pointer" |
|
|
@ -159,7 +165,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<label class="gf-form-label width-8"> Detector Type </label> |
|
|
|
<label class="gf-form-label width-8"> Detector Type </label> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<select class="gf-form-input width-12" |
|
|
|
<select class="gf-form-input width-10" |
|
|
|
ng-model="ctrl.analyticsController.newAnalyticUnit.detectorType" |
|
|
|
ng-model="ctrl.analyticsController.newAnalyticUnit.detectorType" |
|
|
|
ng-options="analyticUnitDetectorType for analyticUnitDetectorType in ctrl.analyticUnitDetectorTypes" |
|
|
|
ng-options="analyticUnitDetectorType for analyticUnitDetectorType in ctrl.analyticUnitDetectorTypes" |
|
|
|
ng-change="ctrl.analyticsController.onAnalyticUnitDetectorChange(ctrl.analyticUnitTypes);" |
|
|
|
ng-change="ctrl.analyticsController.onAnalyticUnitDetectorChange(ctrl.analyticUnitTypes);" |
|
|
@ -168,7 +174,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<label class="gf-form-label width-8"> Type </label> |
|
|
|
<label class="gf-form-label width-8"> Type </label> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<div class="gf-form-select-wrapper"> |
|
|
|
<select class="gf-form-input width-12" |
|
|
|
<select class="gf-form-input width-10" |
|
|
|
ng-model="ctrl.analyticsController.newAnalyticUnit.type" |
|
|
|
ng-model="ctrl.analyticsController.newAnalyticUnit.type" |
|
|
|
ng-options=" |
|
|
|
ng-options=" |
|
|
|
type.value as type.name |
|
|
|
type.value as type.name |
|
|
|