aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 12:52:01 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-16 12:52:01 +1300
commitcb20652e72d37459f13821b3c7b3f8b8a4a09cf8 (patch)
tree75d43cd6c6baaa2195d83b30f9ce0cf285c0f379 /web
parentf61aeccb5d925acfc862700263f91082a0419072 (diff)
downloadtrackermap-server-cb20652e72d37459f13821b3c7b3f8b8a4a09cf8.tar.gz
trackermap-server-cb20652e72d37459f13821b3c7b3f8b8a4a09cf8.tar.bz2
trackermap-server-cb20652e72d37459f13821b3c7b3f8b8a4a09cf8.zip
Add readonly flag to server settings
Diffstat (limited to 'web')
-rw-r--r--web/app/model/Server.js3
-rw-r--r--web/app/view/ServerDialog.js5
-rw-r--r--web/l10n/en.json1
3 files changed, 9 insertions, 0 deletions
diff --git a/web/app/model/Server.js b/web/app/model/Server.js
index b200a2d23..9b4b5b2b6 100644
--- a/web/app/model/Server.js
+++ b/web/app/model/Server.js
@@ -25,6 +25,9 @@ Ext.define('Traccar.model.Server', {
name: 'registration',
type: 'boolean'
}, {
+ name: 'readonly',
+ type: 'boolean'
+ }, {
name: 'map',
type: 'string'
}, {
diff --git a/web/app/view/ServerDialog.js b/web/app/view/ServerDialog.js
index da197ffe4..9fbbed920 100644
--- a/web/app/view/ServerDialog.js
+++ b/web/app/view/ServerDialog.js
@@ -31,6 +31,11 @@ Ext.define('Traccar.view.ServerDialog', {
name: 'registration',
fieldLabel: Strings.serverRegistration,
allowBlank: false
+ },{
+ xtype: 'checkboxfield',
+ name: 'readonly',
+ fieldLabel: Strings.serverReadonly,
+ allowBlank: false
}, {
xtype: 'combobox',
name: 'map',
diff --git a/web/l10n/en.json b/web/l10n/en.json
index 8e10812f3..ec8018863 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -59,6 +59,7 @@
"serverTitle": "Server Settings",
"serverZoom": "Zoom",
"serverRegistration": "Registration",
+ "serverReadonly": "Readonly",
"mapTitle": "Map",
"mapLayer": "Map Layer",
"mapCustom": "Custom Map",