diff --git a/.changelog/13409.txt b/.changelog/13409.txt new file mode 100644 index 0000000000..b45b089ef5 --- /dev/null +++ b/.changelog/13409.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Fix incorrect text on certain page empty states +``` diff --git a/ui/packages/consul-ui/app/templates/dc/acls/auth-methods/index.hbs b/ui/packages/consul-ui/app/templates/dc/acls/auth-methods/index.hbs index f61a94347f..687e636008 100644 --- a/ui/packages/consul-ui/app/templates/dc/acls/auth-methods/index.hbs +++ b/ui/packages/consul-ui/app/templates/dc/acls/auth-methods/index.hbs @@ -90,13 +90,13 @@ as |route|> >

- {{t 'routes.dc.auth-methods.index.empty.header' + {{t 'routes.dc.acls.auth-methods.index.empty.header' items=items.length }}

- {{t 'routes.dc.auth-methods.index.empty.body' + {{t 'routes.dc.acls.auth-methods.index.empty.body' items=items.length htmlSafe=true }} diff --git a/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs b/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs index 2b127daa3e..776910103f 100644 --- a/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs +++ b/ui/packages/consul-ui/app/templates/dc/services/show/intentions/index.hbs @@ -94,13 +94,13 @@ as |route|> >

- {{t 'routes.dc.services.intentions.index.empty.header' + {{t 'routes.dc.services.show.intentions.index.empty.header' items=items.length }}

- {{t 'routes.dc.services.intentions.index.empty.body' + {{t 'routes.dc.services.show.intentions.index.empty.body' items=items.length htmlSafe=true }} diff --git a/ui/packages/consul-ui/app/utils/intl/missing-message.js b/ui/packages/consul-ui/app/utils/intl/missing-message.js index 7e9c3c945f..a454243ca9 100644 --- a/ui/packages/consul-ui/app/utils/intl/missing-message.js +++ b/ui/packages/consul-ui/app/utils/intl/missing-message.js @@ -1,6 +1,12 @@ +/* eslint no-console: ["error", { allow: ["debug"] }] */ +import { runInDebug } from '@ember/debug'; + // if we can't find the message, take the last part of the identifier and // ucfirst it so it looks human export default function missingMessage(key, locales) { + runInDebug( + _ => console.debug(`Translation key not found: ${key}`) + ); const last = key .split('.') .pop() diff --git a/ui/packages/consul-ui/translations/routes/en-us.yaml b/ui/packages/consul-ui/translations/routes/en-us.yaml index bbe2c94288..d0d9045219 100644 --- a/ui/packages/consul-ui/translations/routes/en-us.yaml +++ b/ui/packages/consul-ui/translations/routes/en-us.yaml @@ -75,11 +75,12 @@ dc: title: Metadata sessions: title: Lock Sessions - header: Welcome to Lock Sessions - body: | -

- Consul provides a session mechanism which can be used to build distributed locks. Sessions act as a binding layer between Nodes, Health Checks, and Key/Value data. There are currently no Lock Sessions present, or you may not have key:read or session:read permissions. -

+ empty: + header: Welcome to Lock Sessions + body: | +

+ Consul provides a session mechanism which can be used to build distributed locks. Sessions act as a binding layer between Nodes, Health Checks, and Key/Value data. There are currently no Lock Sessions present, or you may not have key:read or session:read permissions. +

services: title: Service Instances empty: |