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

fix(distribution): improve text when no action is available #2567

Merged
merged 2 commits into from
Dec 8, 2023
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
12 changes: 11 additions & 1 deletion packages/distribution/addon/templates/index.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<div class="uk-text-center uk-text-muted">
{{svg-jar "distribution" class="uk-inline" width=200}}
<p class="uk-margin-medium uk-margin-remove-horizontal">
{{t "caluma.distribution.empty"}}
{{#if
(or
(can "create inquiry of distribution")
(can "complete distribution")
(can "reopen distribution")
)
}}
{{t "caluma.distribution.empty"}}
{{else}}
{{t "caluma.distribution.no-actions"}}
{{/if}}
</p>
<CdNavigation::Controls @useButtons={{true}} />
</div>
1 change: 1 addition & 0 deletions packages/distribution/translations/de.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
caluma:
distribution:
empty: "Es wurden noch keine Anfragen erstellt."
no-actions: "Im aktuellen Zustand stehen keine Aktionen zur Verfügung."
start: "Zirkulation starten"
send: "Offene Anfragen versenden"
complete: "Zirkulation abschliessen"
Expand Down
1 change: 1 addition & 0 deletions packages/distribution/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
caluma:
distribution:
empty: "No inquiries have been created yet."
no-actions: "There are no actions available in the current state."
start: "Start circulation"
send: "Send pending inquiries"
complete: "Complete circulation"
Expand Down
1 change: 1 addition & 0 deletions packages/distribution/translations/fr.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
caluma:
distribution:
empty: "Aucune demande n'a encore été créée."
no-actions: "Aucune action n'est disponible dans l'état actuel."
start: "Lancer la procédure de circulation"
send: "Envoyer les demandes ouvertes"
complete: "Clore la circulation"
Expand Down