num-codex / codex-feasibility-gui

Apache License 2.0
0 stars 2 forks source link

Autoselect the correct unit from model #28

Closed BjoernKroll closed 3 years ago

BjoernKroll commented 3 years ago

In the EditValueFilterComponent the initial unit[filter.unit] is not one of the selectable ones [filter.valueDefinition?.allowedUnits].

Thus in the only a placholder is shown (the mat-label). This should actually be the unit from the allowed units.

TODO: Choose the corresponding unit from the allowedUnits and set it in the filter. Afterwards the unit is shown in dark color (and not light grey indicating the mat-label)

SEE: