From fc37186dd01d96411c3550afaa0ca0b74a5c5265 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 7 Apr 2024 14:50:01 -0700 Subject: Change default popup fields --- src/common/components/StatusCard.jsx | 2 +- 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(',') }); }} -- cgit v1.2.3