forked from extern/egroupware
Fix missing translation in Select group & dropdown options
This commit is contained in:
parent
bf764df720
commit
96558b9da8
@ -144,7 +144,7 @@ export class Et2DropdownButton extends Et2widgetWithSelectMixin(Et2Button)
|
||||
return html`
|
||||
<sl-menu-item value="${option.value}">
|
||||
${icon}
|
||||
${option.label}
|
||||
${this.noLang ? option.label : this.egw().lang(option.label)}
|
||||
</sl-menu-item>`;
|
||||
}
|
||||
|
||||
|
@ -275,7 +275,8 @@ export const Et2widgetWithSelectMixin = <T extends Constructor<LitElement>>(supe
|
||||
return this._optionTemplate(option);
|
||||
}
|
||||
return html`
|
||||
<sl-menu-label>${option.label}</sl-menu-label>
|
||||
|
||||
<sl-menu-label>${this.noLang ? option.label : this.egw().lang(option.label)}</sl-menu-label>
|
||||
${option.value.map(this._optionTemplate.bind(this))}
|
||||
<sl-divider></sl-divider>
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user