diff options
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/model/Notification.js | 3 | ||||
-rw-r--r-- | web/app/model/User.js | 3 | ||||
-rw-r--r-- | web/app/view/DeviceDialog.js | 2 | ||||
-rw-r--r-- | web/app/view/Notifications.js | 7 | ||||
-rw-r--r-- | web/app/view/UserDialog.js | 4 |
5 files changed, 18 insertions, 1 deletions
diff --git a/web/app/model/Notification.js b/web/app/model/Notification.js index 54f6674c..3ae13c05 100644 --- a/web/app/model/Notification.js +++ b/web/app/model/Notification.js @@ -36,5 +36,8 @@ Ext.define('Traccar.model.Notification', { }, { name: 'mail', type: 'bool' + }, { + name: 'sms', + type: 'bool' }] }); diff --git a/web/app/model/User.js b/web/app/model/User.js index df346eee..49400a3c 100644 --- a/web/app/model/User.js +++ b/web/app/model/User.js @@ -32,6 +32,9 @@ Ext.define('Traccar.model.User', { name: 'password', type: 'string' }, { + name: 'phone', + type: 'string' + }, { name: 'readonly', type: 'boolean' }, { diff --git a/web/app/view/DeviceDialog.js b/web/app/view/DeviceDialog.js index 960b3f9b..57820695 100644 --- a/web/app/view/DeviceDialog.js +++ b/web/app/view/DeviceDialog.js @@ -43,7 +43,7 @@ Ext.define('Traccar.view.DeviceDialog', { }, { xtype: 'textfield', name: 'phone', - fieldLabel: Strings.devicePhone + fieldLabel: Strings.sharedPhone }, { xtype: 'textfield', name: 'model', diff --git a/web/app/view/Notifications.js b/web/app/view/Notifications.js index 8f6ca484..0f6552a7 100644 --- a/web/app/view/Notifications.js +++ b/web/app/view/Notifications.js @@ -59,6 +59,13 @@ Ext.define('Traccar.view.Notifications', { listeners: { checkChange: 'onCheckChange' } + }, { + text: Strings.notificationSms, + dataIndex: 'sms', + xtype: 'checkcolumn', + listeners: { + checkChange: 'onCheckChange' + } }] } }); diff --git a/web/app/view/UserDialog.js b/web/app/view/UserDialog.js index 34c3b4a1..84103ee2 100644 --- a/web/app/view/UserDialog.js +++ b/web/app/view/UserDialog.js @@ -43,6 +43,10 @@ Ext.define('Traccar.view.UserDialog', { inputType: 'password', allowBlank: false }, { + xtype: 'textfield', + name: 'phone', + fieldLabel: Strings.sharedPhone + }, { xtype: 'checkboxfield', inputValue: true, uncheckedValue: false, |