Skip to content

Commit

Permalink
Change default popup fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Apr 7, 2024
1 parent 6b0dfe9 commit fc37186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/components/StatusCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/settings/PreferencesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(',') });
}}
Expand Down

0 comments on commit fc37186

Please sign in to comment.