Browse Source

Format/Style, Localize Warning Title #2288

pull/4056/head
Brandon Wortman 9 months ago
parent
commit
2170a85290
No known key found for this signature in database GPG Key ID: C63DB7DA05AEC086
  1. 10
      apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts

10
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts

@ -63,11 +63,11 @@ export class ImportActivitiesDialog implements OnDestroy {
@Inject(MAT_DIALOG_DATA) public data: ImportActivitiesDialogParams, @Inject(MAT_DIALOG_DATA) public data: ImportActivitiesDialogParams,
private dataService: DataService, private dataService: DataService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private formBuilder: FormBuilder,
public dialogRef: MatDialogRef<ImportActivitiesDialog>, public dialogRef: MatDialogRef<ImportActivitiesDialog>,
private formBuilder: FormBuilder,
private importActivitiesService: ImportActivitiesService, private importActivitiesService: ImportActivitiesService,
private snackBar: MatSnackBar, private notificationService: NotificationService,
private notificationService: NotificationService private snackBar: MatSnackBar
) {} ) {}
public ngOnInit() { public ngOnInit() {
@ -302,12 +302,14 @@ export class ImportActivitiesDialog implements OnDestroy {
isDryRun: true, isDryRun: true,
userAccounts: this.data.user.accounts userAccounts: this.data.user.accounts
}); });
if (warnings.length > 0) { if (warnings.length > 0) {
this.notificationService.alert({ this.notificationService.alert({
title: 'Import Warnings', title: $localize`Import Warnings`,
message: warnings.join('<br/>') message: warnings.join('<br/>')
}); });
} }
this.activities = activities; this.activities = activities;
this.dataSource = new MatTableDataSource(activities.reverse()); this.dataSource = new MatTableDataSource(activities.reverse());
this.totalItems = activities.length; this.totalItems = activities.length;

Loading…
Cancel
Save