Merge pull request #1997 from prjseal/fix/ps/no-languages-message
added friendly message to display when there are no other languages t…
This commit is contained in:
@@ -1038,6 +1038,7 @@ export default {
|
||||
language: {
|
||||
cultureCode: 'Culture Code',
|
||||
displayName: 'Culture Name',
|
||||
noFallbackLanguages: 'There are no other languages to choose from',
|
||||
},
|
||||
lockout: {
|
||||
lockoutWillOccur: "You've been idle and logout will automatically occur in",
|
||||
|
||||
@@ -1057,6 +1057,7 @@ export default {
|
||||
language: {
|
||||
cultureCode: 'Culture Code',
|
||||
displayName: 'Culture Name',
|
||||
noFallbackLanguages: 'There are no other languages to choose from',
|
||||
},
|
||||
lockout: {
|
||||
lockoutWillOccur: "You've been idle and logout will automatically occur in",
|
||||
|
||||
@@ -51,7 +51,7 @@ export class UmbLanguagePickerModalElement extends UmbModalBaseElement<
|
||||
render() {
|
||||
return html`<umb-body-layout headline="Select languages">
|
||||
<uui-box>
|
||||
${repeat(
|
||||
${this.#filteredLanguages.length > 0 ? repeat(
|
||||
this.#filteredLanguages,
|
||||
(item) => item.unique,
|
||||
(item) => html`
|
||||
@@ -64,7 +64,9 @@ export class UmbLanguagePickerModalElement extends UmbModalBaseElement<
|
||||
<uui-icon slot="icon" name="icon-globe"></uui-icon>
|
||||
</uui-menu-item>
|
||||
`,
|
||||
)}
|
||||
) : html`<umb-localize key="language_noFallbackLanguages">
|
||||
There are no other languages to choose from
|
||||
</umb-localize>`}
|
||||
</uui-box>
|
||||
<div slot="actions">
|
||||
<uui-button label="Close" @click=${this.#close}></uui-button>
|
||||
|
||||
Reference in New Issue
Block a user