From 2aa7b0c059633882eeafe5c68ee8f12586b0b832 Mon Sep 17 00:00:00 2001 From: Edouard Vanbelle Date: Tue, 26 Nov 2024 00:33:09 +0100 Subject: [PATCH] display serial number on peer information Signed-off-by: Edouard Vanbelle --- src/app/(dashboard)/peer/page.tsx | 13 +++++++++++++ src/interfaces/Peer.ts | 1 + 2 files changed, 14 insertions(+) diff --git a/src/app/(dashboard)/peer/page.tsx b/src/app/(dashboard)/peer/page.tsx index 250a4890..2f885a63 100644 --- a/src/app/(dashboard)/peer/page.tsx +++ b/src/app/(dashboard)/peer/page.tsx @@ -31,6 +31,7 @@ import dayjs from "dayjs"; import { isEmpty, trim } from "lodash"; import { Cpu, + Barcode, FlagIcon, Globe, History, @@ -429,6 +430,17 @@ function PeerInformationCard({ peer }: { peer: Peer }) { } value={peer.os} /> + + + + Serial Number + + } + value={peer.serial_number} + /> + @@ -465,6 +477,7 @@ function PeerInformationCard({ peer }: { peer: Peer }) { } value={peer.ui_version?.replace("netbird-desktop-ui/", "")} /> + ); diff --git a/src/interfaces/Peer.ts b/src/interfaces/Peer.ts index 9e09bc86..6c9e793d 100644 --- a/src/interfaces/Peer.ts +++ b/src/interfaces/Peer.ts @@ -23,4 +23,5 @@ export interface Peer { city_name: string; country_code: string; connection_ip: string; + serial_number: string; }