From a25e7bd56c128fb2a1c673abf735b3e64706f9a8 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Sun, 26 Jun 2016 00:51:33 +0500 Subject: Added notifications via email Added notifications settings --- web/app/view/UsersController.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'web/app/view/UsersController.js') diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index acba66b4d..e745ee04c 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -23,6 +23,7 @@ Ext.define('Traccar.view.UsersController', { 'Traccar.view.UserDevices', 'Traccar.view.UserGroups', 'Traccar.view.UserGeofences', + 'Traccar.view.Notifications', 'Traccar.view.BaseWindow' ], @@ -114,6 +115,18 @@ Ext.define('Traccar.view.UsersController', { }).show(); }, + onNotificationsClick: function () { + var user = this.getView().getSelectionModel().getSelection()[0]; + Ext.create('Traccar.view.BaseWindow', { + title: Strings.sharedNotifications, + modal: false, + items: { + xtype: 'notificationsView', + user: user + } + }).show(); + }, + onSelectionChange: function (selected) { var disabled = selected.length > 0; this.lookupReference('toolbarEditButton').setDisabled(disabled); @@ -121,5 +134,6 @@ Ext.define('Traccar.view.UsersController', { this.lookupReference('userDevicesButton').setDisabled(disabled); this.lookupReference('userGroupsButton').setDisabled(disabled); this.lookupReference('userGeofencesButton').setDisabled(disabled); + this.lookupReference('userNotificationsButton').setDisabled(disabled); } }); -- cgit v1.2.3