Skip to content

Commit

Permalink
When Offline Charging, disable Quota input box
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchennn committed Sep 23, 2023
1 parent 58d06ba commit 42cc353
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions frontend/src/pages/SubscriberCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1146,30 +1146,27 @@ export default function SubscriberCreate() {
</FormControl>
</TableCell>
</TableBody>
{/*
<TableBody>
<TableCell>
<TextField
label="Filter"
variant="outlined"
required
fullWidth
value={chargingData.filter}
onChange={(ev) => handleChangeChargingFilter(ev, dnn, flowKey, flow.qosRef!)}
/>
</TableCell>
</TableBody>
*/}
<TableBody id={idPrefix + "Quota"}>
<TableCell>
<TextField
label="Quota (monetary)"
variant="outlined"
required
fullWidth
value={chargingData.quota}
onChange={(ev) => handleChangeChargingQuota(ev, dnn, flowKey, flow.qosRef!)}
/>
{data.ChargingDatas![i].chargingMethod === 'Online' ?
<TextField
label="Quota (monetary)"
variant="outlined"
required
fullWidth
value={chargingData.quota}
onChange={(ev) => handleChangeChargingQuota(ev, dnn, flowKey, flow.qosRef!)}
/>
:
<TextField
label="Quota (monetary)"
variant="outlined"
disabled
fullWidth
value={chargingData.quota}
onChange={(ev) => handleChangeChargingQuota(ev, dnn, flowKey, flow.qosRef!)}
/>
}
</TableCell>
</TableBody>
<TableBody id={idPrefix + "UnitCost"}>
Expand Down

0 comments on commit 42cc353

Please sign in to comment.