aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-06-28 17:07:30 +1200
committerGitHub <noreply@github.com>2018-06-28 17:07:30 +1200
commitae4933c07d94d912cdea6944f5865567e12f525c (patch)
treeb22c3a7f6acbc2bc28eafdae69f066cbd1ad9649 /web/app/controller/Root.js
parentd67213556dcc87453c0ad5cd6f9e8851c477a2f3 (diff)
parent8e69514733aace4690a9e80a6dd5158d625a66e2 (diff)
downloadetbsa-traccar-web-ae4933c07d94d912cdea6944f5865567e12f525c.tar.gz
etbsa-traccar-web-ae4933c07d94d912cdea6944f5865567e12f525c.tar.bz2
etbsa-traccar-web-ae4933c07d94d912cdea6944f5865567e12f525c.zip
Merge pull request #686 from Abyss777/notifications_refactor
Implement refactored notifications
Diffstat (limited to 'web/app/controller/Root.js')
-rw-r--r--web/app/controller/Root.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 312fc15..0edc049 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -129,6 +129,7 @@ Ext.define('Traccar.controller.Root', {
}
}
});
+ Ext.getStore('AllNotificators').load();
Ext.getStore('Notifications').load();
Ext.getStore('ServerAttributes').loadData(Ext.getStore('CommonDeviceAttributes').getData().items, true);
@@ -289,6 +290,8 @@ Ext.define('Traccar.controller.Root', {
this.beep();
}
Traccar.app.showToast(array[i].text, device.get('name'));
+ } else {
+ Traccar.app.showToast(array[i].text);
}
}
},