diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-26 00:51:33 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-26 00:51:33 +0500 |
commit | a25e7bd56c128fb2a1c673abf735b3e64706f9a8 (patch) | |
tree | a99d2cde526f97082d7bc95531772b6835064fcd /web/app/view/UsersController.js | |
parent | 67f46c80d3b5e34440a2644f52b81dddfbaba5fa (diff) | |
download | trackermap-server-a25e7bd56c128fb2a1c673abf735b3e64706f9a8.tar.gz trackermap-server-a25e7bd56c128fb2a1c673abf735b3e64706f9a8.tar.bz2 trackermap-server-a25e7bd56c128fb2a1c673abf735b3e64706f9a8.zip |
Added notifications via email
Added notifications settings
Diffstat (limited to 'web/app/view/UsersController.js')
-rw-r--r-- | web/app/view/UsersController.js | 14 |
1 files changed, 14 insertions, 0 deletions
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); } }); |