diff --git a/src/common/attributes/useCommonUserAttributes.js b/src/common/attributes/useCommonUserAttributes.js index 43983fbc99..e86e6b6b33 100644 --- a/src/common/attributes/useCommonUserAttributes.js +++ b/src/common/attributes/useCommonUserAttributes.js @@ -137,4 +137,12 @@ export default (t) => useMemo(() => ({ name: t('sharedIconScale'), type: 'number', }, + navigationAppLink: { + name: t('attributeNavigationAppLink'), + type: 'string', + }, + navigationAppTitle: { + name: t('attributeNavigationAppTitle'), + type: 'string', + }, }), [t]); diff --git a/src/common/components/StatusCard.jsx b/src/common/components/StatusCard.jsx index 950206b8e6..a6b572a802 100644 --- a/src/common/components/StatusCard.jsx +++ b/src/common/components/StatusCard.jsx @@ -126,6 +126,9 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin const positionAttributes = usePositionAttributes(t); const positionItems = useAttributePreference('positionItems', 'fixTime,address,speed,totalDistance'); + const navigationAppLink = useAttributePreference('navigationAppLink'); + const navigationAppTitle = useAttributePreference('navigationAppTitle'); + const [anchorEl, setAnchorEl] = useState(null); const [removing, setRemoving] = useState(false); @@ -269,6 +272,7 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin {t('linkGoogleMaps')} {t('linkAppleMaps')} {t('linkStreetView')} + {navigationAppTitle && {navigationAppTitle}} {!shareDisabled && !user.temporary && navigate(`/settings/device/${deviceId}/share`)}>{t('deviceShare')}} )} diff --git a/src/resources/l10n/en.json b/src/resources/l10n/en.json index f541b3a28e..6e0d969602 100644 --- a/src/resources/l10n/en.json +++ b/src/resources/l10n/en.json @@ -150,6 +150,8 @@ "attributeMailSmtpAuth": "Mail: SMTP Auth Enable", "attributeMailSmtpUsername": "Mail: SMTP Username", "attributeMailSmtpPassword": "Mail: SMTP Password", + "attributeNavigationAppLink": "Navigation app link", + "attributeNavigationAppTitle": "Navigation app title", "attributeUiDisableSavedCommands": "UI: Disable Saved Commands", "attributeUiDisableAttributes": "UI: Disable Attributes", "attributeUiDisableGroups": "UI: Disable Groups",