From e109b1d85b4a4d1ba1fc47928eb7d793862be2db Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 14 Jun 2022 17:29:58 -0600 Subject: [PATCH] Always use avatar for user image in Et2SelectAccount tag --- api/js/etemplate/Et2Select/Et2SelectAccount.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/js/etemplate/Et2Select/Et2SelectAccount.ts b/api/js/etemplate/Et2Select/Et2SelectAccount.ts index c8aa767166..28c68e1bac 100644 --- a/api/js/etemplate/Et2Select/Et2SelectAccount.ts +++ b/api/js/etemplate/Et2Select/Et2SelectAccount.ts @@ -9,6 +9,7 @@ import {Et2Select} from "./Et2Select"; import {SelectOption} from "./FindSelectOptions"; +import {html} from "@lion/core"; export type AccountType = 'accounts'|'groups'|'both'|'owngroups'; @@ -80,6 +81,21 @@ export class Et2SelectAccount extends Et2Select { super.select_options = new_options; } + + /** + * Override the prefix image for tags (multiple=true) + * The default is probably fine, but we're being explicit here. + * @param item + * @returns {TemplateResult<1>} + * @protected + * + */ + protected _tagImageTemplate(item) + { + return html` + `; + } } customElements.define("et2-select-account", Et2SelectAccount); \ No newline at end of file