Et2UrlEmail: Use default mail app when preference says to

This commit is contained in:
nathan 2023-03-22 13:03:23 -06:00
parent d2e23876f1
commit 5e6b11e73c

View File

@ -13,6 +13,7 @@ import {IsEmail} from "../Validators/IsEmail";
import {Et2Textbox} from "../Et2Textbox/Et2Textbox";
import {colorsDefStyles} from "../Styles/colorsDefStyles";
import {css} from "@lion/core";
import {egw} from "../../jsapi/egw_global";
/**
* @customElement et2-url-email
@ -56,6 +57,10 @@ export class Et2UrlEmail extends Et2InvokerMixin(Et2Textbox)
{
egw.open_link('mailto:'+value);
}
else
{
window.open("mailto:" + value);
}
}
}
// @ts-ignore TypeScript is not recognizing that this is a LitElement