diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-06 14:15:23 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-06 14:15:23 -0700 |
commit | 3812292cc4413efff1358eb34cc5bccab9d1cbae (patch) | |
tree | 8aa26184ec58a7f231869d427a28f8e999fa2093 /modern/src/attributes/useDeviceAttributes.js | |
parent | 1b513d2cbf4dde335f9a2822beaaeeb171816c8d (diff) | |
download | trackermap-web-3812292cc4413efff1358eb34cc5bccab9d1cbae.tar.gz trackermap-web-3812292cc4413efff1358eb34cc5bccab9d1cbae.tar.bz2 trackermap-web-3812292cc4413efff1358eb34cc5bccab9d1cbae.zip |
Handle unit attributes
Diffstat (limited to 'modern/src/attributes/useDeviceAttributes.js')
-rw-r--r-- | modern/src/attributes/useDeviceAttributes.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/attributes/useDeviceAttributes.js b/modern/src/attributes/useDeviceAttributes.js index f33fc065..8a4d886c 100644 --- a/modern/src/attributes/useDeviceAttributes.js +++ b/modern/src/attributes/useDeviceAttributes.js @@ -3,7 +3,8 @@ import { useMemo } from 'react'; export default (t) => useMemo(() => ({ speedLimit: { name: t('attributeSpeedLimit'), - type: 'string', + type: 'number', + subtype: 'speed', }, 'report.ignoreOdometer': { name: t('attributeReportIgnoreOdometer'), |