Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(formapi): Ajout d'un message notifiant qu'il n'y a aucune donnée… #65

Merged
merged 2 commits into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
></gn-ui-ign-api-produit>
</div>
</div>
<div
class="text-center"
*ngIf="(listFilteredProduct$ | async)?.length === 0"
>
record.metadata.api.form.noData
</div>
</tr>
<tr class="flex items-center justify-between">
<div class="w-1/3">
Expand All @@ -83,7 +89,7 @@
</div>
<div class="w-1/3 flex items-center justify-center">
<div
*ngIf="(pageMax$ | async) !== 1"
*ngIf="(pageMax$ | async) >= 1"
class="sticky z-10 leading-6 font-semibold"
>
{{ page$.value }}/{{ pageMax$ | async }}
Expand Down
3 changes: 2 additions & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
"record.metadata.api.form.customUrl": "Custom URL",
"record.metadata.api.form.limit": "Count of records",
"record.metadata.api.form.limit.all": "All",
"record.metadata.api.form.noData": "No data for selected filters",
"record.metadata.api.form.offset": "Count of first record",
"record.metadata.api.form.openForm": "Open the form",
"record.metadata.api.form.reset": "Reset",
Expand Down Expand Up @@ -514,4 +515,4 @@
"wfs.unreachable.cors": "The service could not be reached because of CORS limitations",
"wfs.unreachable.http": "The service returned an HTTP error",
"wfs.unreachable.unknown": "The service could not be reached"
}
}
3 changes: 2 additions & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@
"record.metadata.api.form.customUrl": "URL personnalisée",
"record.metadata.api.form.limit": "Nombre d'enregistrements",
"record.metadata.api.form.limit.all": "Tous",
"record.metadata.api.form.noData": "Aucune donnée pour les filtres sélectionnés",
"record.metadata.api.form.offset": "Numéro du 1er enregistrement",
"record.metadata.api.form.openForm": "Ouvrir le panneau de personnalisation",
"record.metadata.api.form.reset": "Réinitialiser",
Expand Down Expand Up @@ -514,4 +515,4 @@
"wfs.unreachable.cors": "Le service n'est pas accessible en raison de limitations CORS",
"wfs.unreachable.http": "Le service a retourné une erreur HTTP",
"wfs.unreachable.unknown": "Le service n'est pas accessible"
}
}
Loading