aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-28 04:59:19 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-28 04:59:19 -0800
commit3309317e3bb7db4f1eb3d9ae1803effb637a4faf (patch)
tree012996c91f0b898f7f602a4b43ceeaa4154de761 /modern/src
parent4aa3a83b31bc329e03928d6492e22834a59aa083 (diff)
downloadtrackermap-web-3309317e3bb7db4f1eb3d9ae1803effb637a4faf.tar.gz
trackermap-web-3309317e3bb7db4f1eb3d9ae1803effb637a4faf.tar.bz2
trackermap-web-3309317e3bb7db4f1eb3d9ae1803effb637a4faf.zip
Show uniqueId in connections
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/settings/DeviceConnectionsPage.jsx1
-rw-r--r--modern/src/settings/GroupConnectionsPage.jsx1
-rw-r--r--modern/src/settings/UserConnectionsPage.jsx2
3 files changed, 4 insertions, 0 deletions
diff --git a/modern/src/settings/DeviceConnectionsPage.jsx b/modern/src/settings/DeviceConnectionsPage.jsx
index e6565058..10d0c3f6 100644
--- a/modern/src/settings/DeviceConnectionsPage.jsx
+++ b/modern/src/settings/DeviceConnectionsPage.jsx
@@ -61,6 +61,7 @@ const DeviceConnectionsPage = () => {
baseId={id}
keyBase="deviceId"
keyLink="driverId"
+ titleGetter={(it) => `${it.name} (${it.uniqueId})`}
label={t('sharedDrivers')}
/>
)}
diff --git a/modern/src/settings/GroupConnectionsPage.jsx b/modern/src/settings/GroupConnectionsPage.jsx
index 498bb709..cd4e743b 100644
--- a/modern/src/settings/GroupConnectionsPage.jsx
+++ b/modern/src/settings/GroupConnectionsPage.jsx
@@ -61,6 +61,7 @@ const GroupConnectionsPage = () => {
baseId={id}
keyBase="groupId"
keyLink="driverId"
+ titleGetter={(it) => `${it.name} (${it.uniqueId})`}
label={t('sharedDrivers')}
/>
)}
diff --git a/modern/src/settings/UserConnectionsPage.jsx b/modern/src/settings/UserConnectionsPage.jsx
index b7500ebf..3ca0bdc1 100644
--- a/modern/src/settings/UserConnectionsPage.jsx
+++ b/modern/src/settings/UserConnectionsPage.jsx
@@ -40,6 +40,7 @@ const UserConnectionsPage = () => {
baseId={id}
keyBase="userId"
keyLink="deviceId"
+ titleGetter={(it) => `${it.name} (${it.uniqueId})`}
label={t('deviceTitle')}
/>
<LinkField
@@ -98,6 +99,7 @@ const UserConnectionsPage = () => {
baseId={id}
keyBase="userId"
keyLink="driverId"
+ titleGetter={(it) => `${it.name} (${it.uniqueId})`}
label={t('sharedDrivers')}
/>
<LinkField