feat: add edit share account page (#881)

Fixes: #880
This commit is contained in:
Karan Takalkar
2020-06-17 15:15:39 +05:30
committed by GitHub
parent d51bd6466a
commit 21c54d0baa
16 changed files with 385 additions and 42 deletions
@@ -41,8 +41,17 @@ export class SharesAccountDetailsStepComponent implements OnInit {
}
ngOnInit() {
this.productData = this.sharesAccountTemplate.productOptions;
this.buildDependencies();
if (this.sharesAccountTemplate) {
this.productData = this.sharesAccountTemplate.productOptions;
if (this.sharesAccountTemplate.productId) {
this.sharesAccountDetailsForm.patchValue({
'productId': this.sharesAccountTemplate.productId,
'submittedDate': this.sharesAccountTemplate.timeline.submittedOnDate && new Date(this.sharesAccountTemplate.timeline.submittedOnDate),
'externalId': this.sharesAccountTemplate.externalId
});
}
}
}
/**