-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(import): show loading indicator while preparing preview (#2435)
closes #2429
- Loading branch information
Showing
3 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
46 changes: 26 additions & 20 deletions
46
src/app/core/import/import-review-data/import-review-data.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
<div class="flex-row gap-regular align-center"> | ||
<span class="flex-grow" i18n>Review your mapped data to be imported:</span> | ||
@if (isLoading) { | ||
<div> | ||
<div i18n>Preparing data for preview and import ...</div> | ||
<mat-progress-bar mode="indeterminate"></mat-progress-bar> | ||
</div> | ||
} @else { | ||
<div class="flex-row gap-regular align-center"> | ||
<span class="flex-grow" i18n>Review your mapped data to be imported:</span> | ||
|
||
<button (click)="startImport()" mat-raised-button color="accent" i18n> | ||
Start Import | ||
</button> | ||
<button (click)="startImport()" mat-raised-button color="accent" i18n> | ||
Start Import | ||
</button> | ||
|
||
<app-help-button | ||
text="The data previewed here is mapped and transformed according to the 'Column Mapping' you defined in the previous step. | ||
<app-help-button | ||
text="The data previewed here is mapped and transformed according to the 'Column Mapping' you defined in the previous step. | ||
Only columns for which you selected a field there will be imported and appears here in this preview. | ||
If necessary, you can go back to the previous step and make changes to the mapping." | ||
i18n-text="import - review data - help text" | ||
> | ||
</app-help-button> | ||
</div> | ||
i18n-text="import - review data - help text" | ||
> | ||
</app-help-button> | ||
</div> | ||
|
||
<app-entities-table | ||
*ngIf="mappedEntities.length > 0" | ||
[entityType]="entityConstructor" | ||
[customColumns]="displayColumns" | ||
[columnsToDisplay]="displayColumns" | ||
[records]="mappedEntities" | ||
clickMode="none" | ||
[editable]="false" | ||
/> | ||
<app-entities-table | ||
[entityType]="entityConstructor" | ||
[customColumns]="displayColumns" | ||
[columnsToDisplay]="displayColumns" | ||
[records]="mappedEntities" | ||
clickMode="none" | ||
[editable]="false" | ||
/> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters