Skip to content

Commit

Permalink
feat: name change disabled (#73)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Täschner <[email protected]>
  • Loading branch information
jsteenke and HenryT-CG authored Mar 5, 2024
1 parent aed677b commit 7ee871d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ee871d

Please sign in to comment.