|
@ -84,12 +84,10 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
await this.importActivitiesService.importJson({ |
|
|
this.activities = await this.importActivitiesService.importJson({ |
|
|
content: content.activities, |
|
|
content: content.activities, |
|
|
dryRun: true |
|
|
dryRun: true |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
this.handleImportSuccess(); |
|
|
|
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
console.error(error); |
|
|
console.error(error); |
|
|
this.handleImportError({ error, activities: content.activities }); |
|
|
this.handleImportError({ error, activities: content.activities }); |
|
@ -198,9 +196,4 @@ export class ImportActivitiesDialog implements OnDestroy { |
|
|
|
|
|
|
|
|
this.changeDetectorRef.markForCheck(); |
|
|
this.changeDetectorRef.markForCheck(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private handleImportSuccess() { |
|
|
|
|
|
// this.isFileSelected = true;
|
|
|
|
|
|
// this.changeDetectorRef.markForCheck();
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|