From 90502b95e6904a05f00f3f3f14fca2d14789dbf2 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 20 Mar 2017 16:35:56 +0500 Subject: Add strings for text message event and some alarms --- web/app/controller/Root.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/app/controller/Root.js') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 950b334..b858b20 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -214,6 +214,8 @@ Ext.define('Traccar.controller.Root', { } else if (array[i].type === 'alarm') { alarmKey = 'alarm' + array[i].attributes.alarm.charAt(0).toUpperCase() + array[i].attributes.alarm.slice(1); text = Strings[alarmKey] || alarmKey; + } else if (array[i].type === 'textMessage') { + text = Strings.eventTextMessage + ': ' + array[i].attributes.message; } else { text = Traccar.app.getEventString(array[i].type); } -- cgit v1.2.3