aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/UsersController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-09-19 09:36:16 +0500
committerAbyss777 <abyss@fox5.ru>2017-09-19 16:38:28 +0500
commit3a5e334b50bf35d11743d937c9fae2fb8c7829ec (patch)
treef66c5d8ddcbe861b045e20d0390e8987ac329d7b /web/app/view/edit/UsersController.js
parentd078ef703795ed9c1fb0b6111ee7d12e09143f82 (diff)
downloadtrackermap-web-3a5e334b50bf35d11743d937c9fae2fb8c7829ec.tar.gz
trackermap-web-3a5e334b50bf35d11743d937c9fae2fb8c7829ec.tar.bz2
trackermap-web-3a5e334b50bf35d11743d937c9fae2fb8c7829ec.zip
Implement Notifications per device
Diffstat (limited to 'web/app/view/edit/UsersController.js')
-rw-r--r--web/app/view/edit/UsersController.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/web/app/view/edit/UsersController.js b/web/app/view/edit/UsersController.js
index f710ed24..db82b4f4 100644
--- a/web/app/view/edit/UsersController.js
+++ b/web/app/view/edit/UsersController.js
@@ -30,7 +30,7 @@ Ext.define('Traccar.view.edit.UsersController', {
'Traccar.view.permissions.ComputedAttributes',
'Traccar.view.permissions.Drivers',
'Traccar.view.permissions.SavedCommands',
- 'Traccar.view.Notifications',
+ 'Traccar.view.permissions.Notifications',
'Traccar.view.BaseWindow',
'Traccar.model.User'
],
@@ -125,8 +125,12 @@ Ext.define('Traccar.view.edit.UsersController', {
Ext.create('Traccar.view.BaseWindow', {
title: Strings.sharedNotifications,
items: {
- xtype: 'notificationsView',
- user: user
+ xtype: 'linkNotificationsView',
+ baseObjectName: 'userId',
+ linkObjectName: 'notificationId',
+ storeName: 'AllNotifications',
+ linkStoreName: 'Notifications',
+ baseObject: user.getId()
}
}).show();
},