Skip to content

Commit 9d7744e

Browse files
authored
Message updates
1 parent 640e7b3 commit 9d7744e

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

firebase.js

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -771,9 +771,7 @@ window.FB = {
771771
async sendWorkerInviteEmail(email, facilityName) {
772772
const appUrl = window.location.href.replace(/admin\.html.*$/, 'index.html');
773773
const body =
774-
`🔔 You've been added to Easy SDS
775-
776-
You've been added to the Rhenus SDS Label Generator for ${facilityName}.
774+
`You've been added to the Rhenus SDS Label Generator for ${facilityName}.
777775
778776
To get started, open the app here: ${appUrl}
779777
@@ -786,29 +784,23 @@ Questions? Contact your manager.`;
786784
async sendApprovalEmail(submittedByEmail, productName, facilityName) {
787785
if (!submittedByEmail) return;
788786
const body =
789-
`✅ Chemical Approved — "${productName}"
790-
791-
Your submission for ${productName} at ${facilityName} has been approved. It is now available in the chemical library for your facility.`;
787+
`Your submission for ${productName} at ${facilityName} has been approved. It is now available in the chemical library for your facility.`;
792788
await window.FB.sendEmail(submittedByEmail, `"${productName}" approved`, body);
793789
},
794790

795791
async sendRejectionEmail(submittedByEmail, productName, facilityName, reason = null) {
796792
if (!submittedByEmail) return;
797793
const reasonLine = reason ? `\nReason: ${reason}\n` : '';
798794
const body =
799-
`❌ Submission Not Approved — "${productName}"
800-
801-
Your submission for ${productName} at ${facilityName} was not approved.
795+
`Your submission for ${productName} at ${facilityName} was not approved.
802796
${reasonLine}
803797
Questions? Contact your manager.`;
804798
await window.FB.sendEmail(submittedByEmail, `"${productName}" submission not approved`, body);
805799
},
806800

807801
async sendSubmissionNotification(toEmail, productName, facilityName) {
808802
const body =
809-
`🔬 New Chemical Submission — "${productName}"
810-
811-
A new chemical has been submitted for approval at ${facilityName}.
803+
`A new chemical has been submitted for approval at ${facilityName}.
812804
813805
Product: ${productName}
814806
@@ -821,9 +813,7 @@ Log in to the Easy SDS admin panel to review and approve or reject this submissi
821813
const recipients = [contacts.facilityManager, contacts.engineeringManager].filter(Boolean);
822814
if (!recipients.length) return;
823815
const body =
824-
`👤 New Worker Added — ${facilityName}
825-
826-
${workerEmail} has been added to the Easy SDS app for ${facilityName}.`;
816+
`${workerEmail} has been added to the Easy SDS app for ${facilityName}.`;
827817
await Promise.all(
828818
recipients.map(email => window.FB.sendEmail(email, `New worker added at ${facilityName}`, body))
829819
);

0 commit comments

Comments
 (0)