diff --git a/packages/distribution/addon/templates/index.hbs b/packages/distribution/addon/templates/index.hbs index e7ebd85b6..5d4974ceb 100644 --- a/packages/distribution/addon/templates/index.hbs +++ b/packages/distribution/addon/templates/index.hbs @@ -1,7 +1,17 @@
{{svg-jar "distribution" class="uk-inline" width=200}}

- {{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}}

\ No newline at end of file diff --git a/packages/distribution/translations/de.yaml b/packages/distribution/translations/de.yaml index 557c0b36e..6bc1fbd67 100644 --- a/packages/distribution/translations/de.yaml +++ b/packages/distribution/translations/de.yaml @@ -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" diff --git a/packages/distribution/translations/en.yaml b/packages/distribution/translations/en.yaml index ea73bb1f5..e17fc6bc7 100644 --- a/packages/distribution/translations/en.yaml +++ b/packages/distribution/translations/en.yaml @@ -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" diff --git a/packages/distribution/translations/fr.yaml b/packages/distribution/translations/fr.yaml index 3e7107f52..966d8b6c8 100644 --- a/packages/distribution/translations/fr.yaml +++ b/packages/distribution/translations/fr.yaml @@ -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"