type introduction

This commit is contained in:
Matteo Manzinello 2019-09-16 22:39:08 +02:00
parent fb5ad12477
commit 8f0c439492

View File

@ -636,22 +636,23 @@ const validateEmail = email => {
}; };
// show the modal // show the modal
const showMailgo = () => (getE("mailgo").style.display = "flex"); const showMailgo = type => {
type === TEL_TYPE
// show the tel modal ? setDisplay("mailgo", "flex")
const showMailgoTel = () => (getE("mailgo-tel").style.display = "flex"); : setDisplay("mailgo-tel", "flex");
};
// hide the modal // hide the modal
const hideMailgo = () => { const hideMailgo = () => {
getE("mailgo").style.display = "none"; setDisplay("mailgo", "none");
getE("mailgo-tel").style.display = "none"; setDisplay("mailgo-tel", "none");
}; };
// is the mailgo modal hidden? // is the mailgo modal hidden?
const mailgoIsShowing = type => { const mailgoIsShowing = (type = "mail") => {
type === TEL_TYPE type === TEL_TYPE
? getE("mailgo").style.display === "flex" ? getDisplay("mailgo") === "flex"
: getE("mailgo-tel").style.display === "flex"; : getDisplay("mailgo-tel") === "flex";
}; };
// decrypt email // decrypt email