Issue-ID: SDC-4371
Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
Change-Id: Ie7340a012feee413a622a8f6ed131f10be5e15e4
});
this.$scope.onCategoryChange = (): void => {
+ if (!this.$scope.component.selectedCategory) {
+ this.$scope.editForm['category'].$setDirty();
+ }
+ if (!this.$scope.component.description) {
+ this.$scope.editForm['description'].$setDirty();
+ }
this.$scope.component.selectedCategory = this.$scope.componentCategories.selectedCategory;
if (this.$scope.component.selectedCategory) {
this.$scope.component.categories = this.convertCategoryStringToOneArray();