aboutsummaryrefslogtreecommitdiff
path: root/web/app/store
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/store')
-rw-r--r--web/app/store/ServerAttributes.js3
-rw-r--r--web/app/store/UserAttributes.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/web/app/store/ServerAttributes.js b/web/app/store/ServerAttributes.js
index 23755ba9..aca81f22 100644
--- a/web/app/store/ServerAttributes.js
+++ b/web/app/store/ServerAttributes.js
@@ -31,6 +31,7 @@ Ext.define('Traccar.store.ServerAttributes', {
type: 'number'
}, {
key: 'web.liveRouteLength',
- type: 'number'
+ type: 'number',
+ allowDecimals: false
}]
});
diff --git a/web/app/store/UserAttributes.js b/web/app/store/UserAttributes.js
index 37204751..80ded0d8 100644
--- a/web/app/store/UserAttributes.js
+++ b/web/app/store/UserAttributes.js
@@ -26,6 +26,7 @@ Ext.define('Traccar.store.UserAttributes', {
}, {
key: 'mail.smtp.port',
type: 'number',
+ allowDecimals: false,
minValue: 1,
maxValue: 65535
}, {
@@ -57,6 +58,7 @@ Ext.define('Traccar.store.UserAttributes', {
type: 'string'
}, {
key: 'web.liveRouteLength',
- type: 'number'
+ type: 'number',
+ allowDecimals: false
}]
});