aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/AttributesController.js3
-rw-r--r--web/app/view/DevicesController.js5
-rw-r--r--web/app/view/GeofencesController.js2
-rw-r--r--web/app/view/GroupsController.js4
-rw-r--r--web/app/view/NotificationsController.js4
-rw-r--r--web/app/view/ReportController.js1
-rw-r--r--web/app/view/StateController.js5
-rw-r--r--web/app/view/UsersController.js3
8 files changed, 22 insertions, 5 deletions
diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js
index 5be94dec3..91d69a8e2 100644
--- a/web/app/view/AttributesController.js
+++ b/web/app/view/AttributesController.js
@@ -20,7 +20,8 @@ Ext.define('Traccar.view.AttributesController', {
requires: [
'Traccar.view.AttributeDialog',
- 'Traccar.store.Attributes'
+ 'Traccar.store.Attributes',
+ 'Traccar.model.Attribute'
],
init: function () {
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index 8058db376..17f98629f 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -21,7 +21,10 @@ Ext.define('Traccar.view.DevicesController', {
requires: [
'Traccar.view.CommandDialog',
'Traccar.view.DeviceDialog',
- 'Traccar.view.DeviceGeofences'
+ 'Traccar.view.DeviceGeofences',
+ 'Traccar.view.BaseWindow',
+ 'Traccar.model.Device',
+ 'Traccar.model.Command'
],
config: {
diff --git a/web/app/view/GeofencesController.js b/web/app/view/GeofencesController.js
index 59e416d56..5faee139f 100644
--- a/web/app/view/GeofencesController.js
+++ b/web/app/view/GeofencesController.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.view.GeofencesController', {
requires: [
'Traccar.view.GeofenceDialog',
- 'Traccar.view.BaseWindow'
+ 'Traccar.model.Geofence'
],
init: function () {
diff --git a/web/app/view/GroupsController.js b/web/app/view/GroupsController.js
index 7413f64a8..f1d6e53f3 100644
--- a/web/app/view/GroupsController.js
+++ b/web/app/view/GroupsController.js
@@ -20,7 +20,9 @@ Ext.define('Traccar.view.GroupsController', {
requires: [
'Traccar.view.GroupDialog',
- 'Traccar.view.GroupGeofences'
+ 'Traccar.view.GroupGeofences',
+ 'Traccar.view.BaseWindow',
+ 'Traccar.model.Group'
],
onAddClick: function () {
diff --git a/web/app/view/NotificationsController.js b/web/app/view/NotificationsController.js
index 628343a84..d880c5d41 100644
--- a/web/app/view/NotificationsController.js
+++ b/web/app/view/NotificationsController.js
@@ -18,6 +18,10 @@ Ext.define('Traccar.view.NotificationsController', {
extend: 'Ext.app.ViewController',
alias: 'controller.notificationsController',
+ requires: [
+ 'Traccar.store.Notifications'
+ ],
+
init: function () {
this.userId = this.getView().user.getData().id;
this.getView().getStore().load({
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 28227e24d..3a3345d83 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -20,6 +20,7 @@ Ext.define('Traccar.view.ReportController', {
alias: 'controller.report',
requires: [
+ 'Traccar.AttributeFormatter',
'Traccar.view.ReportConfigDialog',
'Traccar.store.ReportEventTypes'
],
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index 01df6645d..fca41bbc7 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -17,6 +17,11 @@
Ext.define('Traccar.view.StateController', {
extend: 'Ext.app.ViewController',
alias: 'controller.state',
+
+ requires: [
+ 'Traccar.AttributeFormatter',
+ 'Traccar.model.Attribute'
+ ],
config: {
listen: {
diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js
index 73088a40e..da7dd8f13 100644
--- a/web/app/view/UsersController.js
+++ b/web/app/view/UsersController.js
@@ -24,7 +24,8 @@ Ext.define('Traccar.view.UsersController', {
'Traccar.view.UserGroups',
'Traccar.view.UserGeofences',
'Traccar.view.Notifications',
- 'Traccar.view.BaseWindow'
+ 'Traccar.view.BaseWindow',
+ 'Traccar.model.User'
],
init: function () {