diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-31 17:11:10 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-31 17:11:10 -0700 |
commit | b1f3e7d1753e0c0bc04372ccd1f34ce21277f658 (patch) | |
tree | 2c328707fd93845c5c9d3010986190ca60aa58eb /modern/src/common | |
parent | a2fe2c3bddc17cbdad6acae6b86b352a4ea14522 (diff) | |
download | trackermap-web-b1f3e7d1753e0c0bc04372ccd1f34ce21277f658.tar.gz trackermap-web-b1f3e7d1753e0c0bc04372ccd1f34ce21277f658.tar.bz2 trackermap-web-b1f3e7d1753e0c0bc04372ccd1f34ce21277f658.zip |
Handle network property (fix #954)
Diffstat (limited to 'modern/src/common')
-rw-r--r-- | modern/src/common/components/PositionValue.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js index 3dd0eb6f..cdb2c6d6 100644 --- a/modern/src/common/components/PositionValue.js +++ b/modern/src/common/components/PositionValue.js @@ -87,6 +87,8 @@ const PositionValue = ({ position, property, attribute }) => { return address; } return (<Link href="#" onClick={showAddress}>{t('sharedShowAddress')}</Link>); + case 'network': + return (<Link component={RouterLink} to={`/network/${position.id}`}>{t('sharedInfoTitle')}</Link>); default: return formatValue(value); } |