Fix model and category change issues on Service 85/125285/2
authorandre.schmid <andre.schmid@est.tech>
Fri, 22 Oct 2021 14:40:00 +0000 (15:40 +0100)
committerandre.schmid <andre.schmid@est.tech>
Wed, 27 Oct 2021 10:30:51 +0000 (11:30 +0100)
commit453eb2bd29e65a9f680580ab39b70ed361a80520
treec0462e47334800506e95df038184df42e3fdfa4d
parent68eed7997aab4aa4f785085303aab61cf8e16a31
Fix model and category change issues on Service

During Service creation, when the model value changes, the dependent
fields information, category and substitution type, were not
correctly being erased.

Also, during the Service edition, the category validation that checked
if the selected category is allowed for a base type was incorrect.

Change-Id: Ibdf63168ad681ade9b500e95beff1bd69c304420
Issue-ID: SDC-3765
Signed-off-by: andre.schmid <andre.schmid@est.tech>
catalog-ui/src/app/view-models/workspace/tabs/general/general-view-model.ts