diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-07 14:50:01 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-07 14:50:01 -0700 |
commit | fc37186dd01d96411c3550afaa0ca0b74a5c5265 (patch) | |
tree | 728c1a54a4f47c0f862e781c6b7d63e1ef3d331a /src | |
parent | 6b0dfe921078d72e661bad8f14ecde224f5c2e8a (diff) | |
download | trackermap-web-fc37186dd01d96411c3550afaa0ca0b74a5c5265.tar.gz trackermap-web-fc37186dd01d96411c3550afaa0ca0b74a5c5265.tar.bz2 trackermap-web-fc37186dd01d96411c3550afaa0ca0b74a5c5265.zip |
Change default popup fields
Diffstat (limited to 'src')
-rw-r--r-- | src/common/components/StatusCard.jsx | 2 | ||||
-rw-r--r-- | src/settings/PreferencesPage.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/components/StatusCard.jsx b/src/common/components/StatusCard.jsx index a63d0f80..fd92c658 100644 --- a/src/common/components/StatusCard.jsx +++ b/src/common/components/StatusCard.jsx @@ -127,7 +127,7 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin const deviceImage = device?.attributes?.deviceImage; const positionAttributes = usePositionAttributes(t); - const positionItems = useAttributePreference('positionItems', 'speed,address,totalDistance,course'); + const positionItems = useAttributePreference('positionItems', 'fixTime,address,speed,totalDistance'); const [anchorEl, setAnchorEl] = useState(null); diff --git a/src/settings/PreferencesPage.jsx b/src/settings/PreferencesPage.jsx index 2d6df62f..a40f6a55 100644 --- a/src/settings/PreferencesPage.jsx +++ b/src/settings/PreferencesPage.jsx @@ -149,7 +149,7 @@ const PreferencesPage = () => { freeSolo options={Object.keys(positionAttributes)} getOptionLabel={(option) => (positionAttributes[option]?.name || option)} - value={attributes.positionItems?.split(',') || ['speed', 'address', 'totalDistance', 'course']} + value={attributes.positionItems?.split(',') || ['fixTime', 'address', 'speed', 'totalDistance']} onChange={(_, option) => { setAttributes({ ...attributes, positionItems: option.join(',') }); }} |