From 4566f7f73b84f49562e80c3166d46507ef78139d Mon Sep 17 00:00:00 2001
From: "CTFang@WireLab" <ctfang.cs12@nycu.edu.tw>
Date: Fri, 29 Mar 2024 02:44:45 +0000
Subject: [PATCH] feat: subscriber read static-ip ui

---
 frontend/src/pages/SubscriberRead.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/frontend/src/pages/SubscriberRead.tsx b/frontend/src/pages/SubscriberRead.tsx
index fbd82b9..1d4994d 100644
--- a/frontend/src/pages/SubscriberRead.tsx
+++ b/frontend/src/pages/SubscriberRead.tsx
@@ -417,6 +417,18 @@ export default function SubscriberRead() {
                             </TableCell>
                           </TableRow>
                         </TableBody>
+                        <TableBody>
+                          <TableRow>
+                            <TableCell style={{ width: "40%" }}>StaticIpv4</TableCell>
+                            <TableCell>
+                              {row.dnnConfigurations![dnn]["staticIpAddress"] == null
+                                ? "Not Set"
+                                : row.dnnConfigurations![dnn]["staticIpAddress"]?.length == 0
+                                  ? ""
+                                  : row.dnnConfigurations![dnn]["staticIpAddress"]![0].ipv4Addr!}
+                            </TableCell>
+                          </TableRow>
+                        </TableBody>
                       </Table>
                       {flowRule(dnn, row.singleNssai!)}
                       {upSecurity(row.dnnConfigurations![dnn])}
-- 
GitLab