(- 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:
@@ -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 '';
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user