Skip to content

Commit

Permalink
fix(distribution): improve text when no action is available (#2567)
Browse files Browse the repository at this point in the history
* fix(distribution): improve text when no action is available

* chore(distribution): improve message

Co-authored-by: Christian Zosel <christian@zosel.ch>

---------

Co-authored-by: Christian Zosel <christian@zosel.ch>
  • Loading branch information
Yelinz and czosel authored Dec 8, 2023
1 parent ee207bd commit 308f10d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
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

0 comments on commit 308f10d

Please sign in to comment.