(- Booking not available if is in the past

- Delete record only if "Active Edit" is on
- Image stretch width reduced.
- Signin more dense)

- Email also to Manager person
- added "Reply-To" in the header of the email.
This commit is contained in:
Paolo Arena
2019-10-16 15:28:49 +02:00
parent 51ef3de29a
commit 3424b20e9a
4 changed files with 195 additions and 57 deletions

View File

@@ -296,13 +296,26 @@ module.exports = {
getNomeAppByIdApp: function (idapp) {
const myapp = MYAPPS.find(item => item.idapp === idapp);
const myapp =
MYAPPS.find(item => item.idapp === idapp);
if (myapp)
return myapp.name;
else
return '';
},
getHostByIdApp: function (idapp) {
const myapp =
MYAPPS.find(item => item.idapp === idapp);
if (myapp) {
let siteport = (myapp.portapp !== "0") ? (':' + myapp.portapp) : "";
return myapp.host + siteport;
} else
return '';
},
getAdminEmailByIdApp: function (idapp) {
const myapp = MYAPPS.find((item) => item.idapp === idapp);
if (myapp)
@@ -311,6 +324,26 @@ module.exports = {
return '';
},
getreplyToEmailByIdApp: function (idapp) {
const myapp = MYAPPS.find((item) => item.idapp === idapp);
if (myapp)
return myapp.replyTo;
else
return '';
},
isManagAndAdminDifferent(idapp) {
return this.getManagerEmailByIdApp(idapp) !== this.getAdminEmailByIdApp(idapp)
},
getManagerEmailByIdApp: function (idapp) {
const myapp = MYAPPS.find((item) => item.idapp === idapp);
if (myapp)
return myapp.manageremail;
else
return '';
},
};