i18n for publication update page.

This commit is contained in:
Florian THIERRY
2024-09-21 21:00:59 +02:00
parent 67c3d0b3e6
commit 3f6764dd7d
4 changed files with 27 additions and 10 deletions

View File

@@ -1,13 +1,20 @@
@if ((isLoading$ | async) == true) {
<h2 i18n>Loading publication to edit...</h2>
<mat-spinner></mat-spinner>
}
@else {
@if (publication) {
<app-publication-edition title="Update publication {{ publication.title }}" [publication]="publication" [isSaving$]="isSaving$" (publicationSave)="onPublicationSave($event)"></app-publication-edition>
<app-publication-edition
title="Update publication {{ publication.title }}"
[publication]="publication"
[isSaving$]="isSaving$"
(publicationSave)="onPublicationSave($event)"
i18n-title>
</app-publication-edition>
}
@else {
<div class="loading-failed">
<h1>Publication failed to load...</h1>
<h1 i18n>Publication failed to load...</h1>
</div>
}
}