mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Avoid egwIsMobile() is undefined in tests
This commit is contained in:
parent
1a70183e0b
commit
80cb0b1f9f
@ -1261,11 +1261,12 @@ export class Et2Email extends Et2InputWidget(LitElement) implements SearchMixinI
|
|||||||
{
|
{
|
||||||
const classes = option.class ? Object.fromEntries((option.class).split(" ").map(k => [k, true])) : {};
|
const classes = option.class ? Object.fromEntries((option.class).split(" ").map(k => [k, true])) : {};
|
||||||
const value = (<string>option.value).replaceAll(" ", "___");
|
const value = (<string>option.value).replaceAll(" ", "___");
|
||||||
|
const isMobile = typeof egwIsMobile == "function" ? egwIsMobile() : false
|
||||||
return html`
|
return html`
|
||||||
<sl-option
|
<sl-option
|
||||||
part="option"
|
part="option"
|
||||||
exportparts="prefix:tag__prefix, suffix:tag__suffix, image"
|
exportparts="prefix:tag__prefix, suffix:tag__suffix, image"
|
||||||
title="${!egwIsMobile() && option.title ? (this.noLang ? option.title : this.egw().lang(option.title)) : nothing}"
|
title="${!isMobile && option.title ? (this.noLang ? option.title : this.egw().lang(option.title)) : nothing}"
|
||||||
class=${classMap({
|
class=${classMap({
|
||||||
...classes
|
...classes
|
||||||
})}
|
})}
|
||||||
|
Loading…
Reference in New Issue
Block a user