From bd8198d2301eb4a7b93bf67e6cbaf4604bc223fc Mon Sep 17 00:00:00 2001 From: ralf Date: Mon, 6 Feb 2023 15:52:58 +0100 Subject: [PATCH] missing et2-select-lang widget --- api/js/etemplate/Et2Select/Et2Select.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2Select/Et2Select.ts b/api/js/etemplate/Et2Select/Et2Select.ts index 08c43e2e9e..80f4c2dc98 100644 --- a/api/js/etemplate/Et2Select/Et2Select.ts +++ b/api/js/etemplate/Et2Select/Et2Select.ts @@ -895,4 +895,17 @@ export class Et2SelectYear extends Et2SelectNumber } // @ts-ignore TypeScript is not recognizing that this widget is a LitElement -customElements.define("et2-select-year", Et2SelectYear); \ No newline at end of file +customElements.define("et2-select-year", Et2SelectYear); + +export class Et2SelectLang extends Et2StaticSelectMixin(Et2Select) +{ + constructor() + { + super(); + + this.static_options = so.lang(this, {other: this.other || []}); + } +} + +// @ts-ignore TypeScript is not recognizing that this widget is a LitElement +customElements.define("et2-select-lang", Et2SelectLang); \ No newline at end of file