fleetmap-reports 2.0.153 → 2.0.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lang/frFR.json +1 -0
- package/package.json +1 -1
- package/src/events-report.js +1 -1
package/lang/frFR.json
CHANGED
|
@@ -254,6 +254,7 @@
|
|
|
254
254
|
"event_geofenceExit": "Sortir en zone",
|
|
255
255
|
"event_deviceFuelDrop": "Perte de carburant",
|
|
256
256
|
"event_driverChanged": "Changement de pilote",
|
|
257
|
+
"event_maintenance": "Maintenance",
|
|
257
258
|
"event_sos": "SOS",
|
|
258
259
|
"event_powerOn": "prise de force",
|
|
259
260
|
"event_powerCut": "Coupure de courant",
|
package/package.json
CHANGED
package/src/events-report.js
CHANGED
|
@@ -252,7 +252,7 @@ function getEventType (a, translations, device, userData) {
|
|
|
252
252
|
userData.notifications.length &&
|
|
253
253
|
a.type === 'maintenance' &&
|
|
254
254
|
a.attributes.notifications) {
|
|
255
|
-
const notification = userData.notifications.find(n => a.attributes.notifications.split(',').includes(n.id))
|
|
255
|
+
const notification = userData.notifications.find(n => a.attributes.notifications.split(',').includes(n.id.toString()))
|
|
256
256
|
if (notification) {
|
|
257
257
|
return `${result} ${notification.attributes.name}`
|
|
258
258
|
}
|