|
@ -56,6 +56,7 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
this.data?.activityTypes?.[0] === 'DIVIDEND' |
|
|
this.data?.activityTypes?.[0] === 'DIVIDEND' |
|
|
) { |
|
|
) { |
|
|
this.mode = 'DIVIDEND'; |
|
|
this.mode = 'DIVIDEND'; |
|
|
|
|
|
this.uniqueAssetForm.controls['uniqueAsset'].disable(); |
|
|
|
|
|
|
|
|
this.dataService |
|
|
this.dataService |
|
|
.fetchPositions({ |
|
|
.fetchPositions({ |
|
@ -72,6 +73,7 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
this.holdings = sortBy(positions, ({ name }) => { |
|
|
this.holdings = sortBy(positions, ({ name }) => { |
|
|
return name.toLowerCase(); |
|
|
return name.toLowerCase(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.uniqueAssetForm.controls['uniqueAsset'].enable(); |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
}); |
|
|
}); |
|
@ -111,6 +113,8 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public onLoadDividends() { |
|
|
public onLoadDividends() { |
|
|
|
|
|
this.uniqueAssetForm.controls['uniqueAsset'].disable(); |
|
|
|
|
|
|
|
|
const { dataSource, symbol } = |
|
|
const { dataSource, symbol } = |
|
|
this.uniqueAssetForm.controls['uniqueAsset'].value; |
|
|
this.uniqueAssetForm.controls['uniqueAsset'].value; |
|
|
|
|
|
|
|
|