- {/* Self-toggle Button */}
- {/* List of Watchers */}
{t("notifications.labels.watching-issue")}
{watcherLoading ?
:
}
- {/* Employee Search Select (for adding watchers) */}
{t("notifications.labels.add-watchers")}
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index cf7756abf..53c07fc12 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -3781,7 +3781,7 @@
"new-notification-title": "New Notification:",
"show-unread-only": "Show Unread",
"mark-all-read": "Mark Read",
- "loading": "Loading Notifications..."
+ "notification-popup-title": "Changes for Job #{{ro_number}}"
},
"actions": {
"remove": "remove"
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index 4495a83c9..777737a01 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -3769,6 +3769,7 @@
},
"notifications": {
"labels": {
+ "notification-center": "",
"scenario": "",
"notificationscenarios": "",
"save": "",
@@ -3776,7 +3777,11 @@
"add-watchers": "",
"employee-search": "",
"teams-search": "",
- "add-watchers-team": ""
+ "add-watchers-team": "",
+ "new-notification-title": "",
+ "show-unread-only": "",
+ "mark-all-read": "",
+ "notification-popup-title": ""
},
"actions": {
"remove": ""
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index 4f6ac7563..f4920775b 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -3769,6 +3769,7 @@
},
"notifications": {
"labels": {
+ "notification-center": "",
"scenario": "",
"notificationscenarios": "",
"save": "",
@@ -3776,7 +3777,11 @@
"add-watchers": "",
"employee-search": "",
"teams-search": "",
- "add-watchers-team": ""
+ "add-watchers-team": "",
+ "new-notification-title": "",
+ "show-unread-only": "",
+ "mark-all-read": "",
+ "notification-popup-title": ""
},
"actions": {
"remove": ""
diff --git a/server/notifications/scenarioBuilders.js b/server/notifications/scenarioBuilders.js
index 447585918..316b353ea 100644
--- a/server/notifications/scenarioBuilders.js
+++ b/server/notifications/scenarioBuilders.js
@@ -9,7 +9,13 @@ const { getJobAssignmentType } = require("./stringHelpers");
const populateWatchers = (data, result) => {
data.scenarioWatchers.forEach((recipients) => {
const { user, app, fcm, email, firstName, lastName, employeeId, associationId } = recipients;
- if (app === true) result.app.recipients.push({ user, bodyShopId: data.bodyShopId, employeeId, associationId });
+ if (app === true)
+ result.app.recipients.push({
+ user,
+ bodyShopId: data.bodyShopId,
+ employeeId,
+ associationId
+ });
if (fcm === true) result.fcm.recipients.push(user);
if (email === true) result.email.recipients.push({ user, firstName, lastName });
});
@@ -147,7 +153,7 @@ const intakeDeliveryChecklistCompletedBuilder = (data) => {
* Builds notification data for job assignment events.
*/
const jobAssignedToMeBuilder = (data) => {
- const body = `You have been assigned to [${getJobAssignmentType(data.scenarioFields?.[0])}]`;
+ const body = `You have been assigned to ${getJobAssignmentType(data.scenarioFields?.[0])}`;
const result = {
app: {
jobId: data.jobId,