From 42cc3534b5ebc3fc113ee5b38ea71d4744087d4c Mon Sep 17 00:00:00 2001 From: brianchennn Date: Sat, 23 Sep 2023 09:41:20 +0000 Subject: [PATCH] When Offline Charging, disable Quota input box --- frontend/src/pages/SubscriberCreate.tsx | 41 ++++++++++++------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/frontend/src/pages/SubscriberCreate.tsx b/frontend/src/pages/SubscriberCreate.tsx index 9c66f1f3..02c56429 100644 --- a/frontend/src/pages/SubscriberCreate.tsx +++ b/frontend/src/pages/SubscriberCreate.tsx @@ -1146,30 +1146,27 @@ export default function SubscriberCreate() { - {/* - - - handleChangeChargingFilter(ev, dnn, flowKey, flow.qosRef!)} - /> - - - */} - handleChangeChargingQuota(ev, dnn, flowKey, flow.qosRef!)} - /> + {data.ChargingDatas![i].chargingMethod === 'Online' ? + handleChangeChargingQuota(ev, dnn, flowKey, flow.qosRef!)} + /> + : + handleChangeChargingQuota(ev, dnn, flowKey, flow.qosRef!)} + /> + }