|
@ -1,7 +1,7 @@ |
|
|
<gf-dialog-header |
|
|
<gf-dialog-header |
|
|
mat-dialog-title |
|
|
mat-dialog-title |
|
|
[deviceType]="data.deviceType" |
|
|
[deviceType]="data.deviceType" |
|
|
[title]="errorMessages.length === 0 ? 'Import Activities' : 'Import Activities Error'" |
|
|
[title]="dialogTitle" |
|
|
(closeButtonClicked)="onCancel()" |
|
|
(closeButtonClicked)="onCancel()" |
|
|
></gf-dialog-header> |
|
|
></gf-dialog-header> |
|
|
|
|
|
|
|
@ -15,7 +15,14 @@ |
|
|
(selectionChange)="onImportStepChange($event)" |
|
|
(selectionChange)="onImportStepChange($event)" |
|
|
> |
|
|
> |
|
|
<mat-step [completed]="importStep === 0" [selected]="importStep === 0"> |
|
|
<mat-step [completed]="importStep === 0" [selected]="importStep === 0"> |
|
|
<ng-template i18n matStepLabel>Select File</ng-template> |
|
|
<ng-template matStepLabel> |
|
|
|
|
|
<ng-container *ngIf="mode === 'DIVIDEND'" i18n |
|
|
|
|
|
>Select Holding</ng-container |
|
|
|
|
|
> |
|
|
|
|
|
<ng-container *ngIf="mode !== 'DIVIDEND'" i18n |
|
|
|
|
|
>Select File</ng-container |
|
|
|
|
|
> |
|
|
|
|
|
</ng-template> |
|
|
<div class="pt-3"> |
|
|
<div class="pt-3"> |
|
|
<ng-container *ngIf="mode === 'DIVIDEND'; else selectFile"> |
|
|
<ng-container *ngIf="mode === 'DIVIDEND'; else selectFile"> |
|
|
<form |
|
|
<form |
|
@ -27,9 +34,16 @@ |
|
|
<mat-select formControlName="uniqueAsset"> |
|
|
<mat-select formControlName="uniqueAsset"> |
|
|
<mat-option |
|
|
<mat-option |
|
|
*ngFor="let holding of holdings" |
|
|
*ngFor="let holding of holdings" |
|
|
|
|
|
class="line-height-1" |
|
|
[value]="{dataSource: holding.dataSource, symbol: holding.symbol}" |
|
|
[value]="{dataSource: holding.dataSource, symbol: holding.symbol}" |
|
|
>{{ holding.name }}</mat-option |
|
|
|
|
|
> |
|
|
> |
|
|
|
|
|
<span><b>{{ holding.name }}</b></span> |
|
|
|
|
|
<br /> |
|
|
|
|
|
<small class="text-muted" |
|
|
|
|
|
>{{ holding.symbol | gfSymbol }} · {{ holding.currency |
|
|
|
|
|
}}</small |
|
|
|
|
|
> |
|
|
|
|
|
</mat-option> |
|
|
</mat-select> |
|
|
</mat-select> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
<div class="d-flex flex-column justify-content-center"> |
|
|
<div class="d-flex flex-column justify-content-center"> |
|
@ -77,7 +91,14 @@ |
|
|
</mat-step> |
|
|
</mat-step> |
|
|
|
|
|
|
|
|
<mat-step [completed]="importStep === 1" [selected]="importStep === 1"> |
|
|
<mat-step [completed]="importStep === 1" [selected]="importStep === 1"> |
|
|
<ng-template i18n matStepLabel>Select Activities</ng-template> |
|
|
<ng-template matStepLabel> |
|
|
|
|
|
<ng-container *ngIf="mode === 'DIVIDEND'" i18n |
|
|
|
|
|
>Select Dividends</ng-container |
|
|
|
|
|
> |
|
|
|
|
|
<ng-container *ngIf="mode !== 'DIVIDEND'" i18n |
|
|
|
|
|
>Select Activities</ng-container |
|
|
|
|
|
> |
|
|
|
|
|
</ng-template> |
|
|
<div class="pt-3"> |
|
|
<div class="pt-3"> |
|
|
<ng-container *ngIf="errorMessages.length === 0; else errorMessage"> |
|
|
<ng-container *ngIf="errorMessages.length === 0; else errorMessage"> |
|
|
<gf-activities-table |
|
|
<gf-activities-table |
|
|