Skip to content

Commit

Permalink
Add contents in ThumbnailGenerationErrorDialogComponent. Update messa…
Browse files Browse the repository at this point in the history
…ges in ThumbnailGenerationStatusBarComponent.
  • Loading branch information
TomoyukiAota committed Dec 5, 2024
1 parent e987e30 commit 9b500c4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
<p>thumbnail-generation-error-dialog works!</p>
<div class="message">Failed to generate thumbnails for the following files:</div>
<button mat-stroked-button
mat-dialog-close
class="close-button">
Close
</button>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:host {
height: 100%;
padding: 10px;

display: grid;
grid: "message" 1fr
"close-button" auto
/auto;
.message { grid-area: message; }
.close-button { grid-area: close-button; }
}

.message {
margin: 10px;
}

.close-button {
width: 80px;
justify-self: center;
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="summary">
<ng-container *ngIf="isThumbnailGenerationDone; else summaryForThumbnailGenerationInProgress">
<span *ngIf="thumbnailGenerationResult.errorOccurred; else summaryForNoErrorDuringThumbnailGeneration">Finished generating thumbnails for HEIF files with error(s).</span>
<span *ngIf="thumbnailGenerationResult.errorOccurred; else summaryForNoErrorDuringThumbnailGeneration">Finished generating thumbnails for HEIF files with errors.</span>
<ng-template #summaryForNoErrorDuringThumbnailGeneration>
<span>Completed generating thumbnails for HEIF files.</span>
</ng-template>
Expand All @@ -24,15 +24,15 @@
<div>
<ng-container *ngIf="isThumbnailGenerationDone; else detailsForThumbnailGenerationInProgress">
<span *ngIf="thumbnailGenerationResult.errorOccurred; else detailsForNoErrorDuringThumbnailGeneration">
<span>Processed {{ numberOfProcessedThumbnails }} out of {{ numberOfThumbnailsGenerationRequired }} thumbnails with error(s). </span>
<span class="anchor-tag-like-text" (click)="handleErrorTextClicked($event)">Click here to see the error(s).</span>
<span>Processed {{ numberOfProcessedThumbnails }} out of {{ numberOfThumbnailsGenerationRequired }} files with errors. </span>
<span class="anchor-tag-like-text" (click)="handleClickHereTextClicked($event)">Click here to see the files with errors.</span>
</span>
<ng-template #detailsForNoErrorDuringThumbnailGeneration>
<span>Processed {{ numberOfProcessedThumbnails }} out of {{ numberOfThumbnailsGenerationRequired }} thumbnails.</span>
<span>Processed {{ numberOfProcessedThumbnails }} out of {{ numberOfThumbnailsGenerationRequired }} files.</span>
</ng-template>
</ng-container>
<ng-template #detailsForThumbnailGenerationInProgress>
<span>Processed {{ numberOfProcessedThumbnails }} out of {{ numberOfThumbnailsGenerationRequired }} thumbnails.</span>
<span>Processed {{ numberOfProcessedThumbnails }} out of {{ numberOfThumbnailsGenerationRequired }} files.</span>
</ng-template>
</div>
<div class="generation-required-files-description">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class ThumbnailGenerationStatusBarComponent implements OnInit {
});
}

public handleErrorTextClicked(event: MouseEvent) {
public handleClickHereTextClicked(event: MouseEvent) {
event.stopPropagation();
this.dialog.open(ThumbnailGenerationErrorDialogComponent, {
width: '800px',
Expand Down

0 comments on commit 9b500c4

Please sign in to comment.