Browse Source

Choosing custom color for analytic unit #31 (#41)

* add type to value in used methids
rename Anomaly => AnalyticUnit
fix wrong method being called

* add an exception to AnalyticUnitColorChange
master
sanke1 6 years ago committed by Alexey Velikiy
parent
commit
b2a474178d
  1. 3
      src/controllers/analytic_controller.ts

3
src/controllers/analytic_controller.ts

@ -171,6 +171,9 @@ export class AnalyticController {
}
onAnalyticUnitColorChange(id: AnalyticUnitId, value: string) {
if(id === undefined) {
throw new Error('id is undefined');
}
this._analyticUnitsSet.byId(id).color = value;
}

Loading…
Cancel
Save