diff --git a/src/app/product-store/product-detail/product-props/product-props.component.ts b/src/app/product-store/product-detail/product-props/product-props.component.ts index 4db12ef..b830ab0 100644 --- a/src/app/product-store/product-detail/product-props/product-props.component.ts +++ b/src/app/product-store/product-detail/product-props/product-props.component.ts @@ -85,6 +85,9 @@ export class ProductPropertyComponent implements OnChanges, OnInit { } ngOnInit(): void { + if (this.changeMode === 'EDIT') { + this.formGroup.controls['name'].disable() + } let productName = this.formGroup.controls['name'].value! if (!productName) { this.logoImageWasUploaded = false