|
|
@ -188,7 +188,7 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
|
|
|
|
input.type = 'file';
|
|
|
|
input.type = 'file';
|
|
|
|
|
|
|
|
|
|
|
|
input.onchange = (event) => {
|
|
|
|
input.onchange = (event) => {
|
|
|
|
this.snackBar.open('⏳' + $localize`Importing data...`);
|
|
|
|
this.snackBar.open('⏳ ' + $localize`Importing data...`);
|
|
|
|
|
|
|
|
|
|
|
|
// Getting the file reference
|
|
|
|
// Getting the file reference
|
|
|
|
const file = (event.target as HTMLInputElement).files[0];
|
|
|
|
const file = (event.target as HTMLInputElement).files[0];
|
|
|
@ -334,9 +334,13 @@ export class TransactionsPageComponent implements OnDestroy, OnInit {
|
|
|
|
private handleImportSuccess() {
|
|
|
|
private handleImportSuccess() {
|
|
|
|
this.fetchActivities();
|
|
|
|
this.fetchActivities();
|
|
|
|
|
|
|
|
|
|
|
|
this.snackBar.open('✅' + $localize`Import has been completed`, undefined, {
|
|
|
|
this.snackBar.open(
|
|
|
|
duration: 3000
|
|
|
|
'✅ ' + $localize`Import has been completed`,
|
|
|
|
});
|
|
|
|
undefined,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
duration: 3000
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private openCreateTransactionDialog(aActivity?: Activity): void {
|
|
|
|
private openCreateTransactionDialog(aActivity?: Activity): void {
|
|
|
|