From 57ca6bd52bbcff93af058837604d301baba19ceb Mon Sep 17 00:00:00 2001 From: leandrofars Date: Tue, 18 Jun 2024 20:05:20 -0300 Subject: [PATCH] feat(frontend): cwmp change device password --- .../src/sections/devices/cwmp/devices-wifi.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/frontend/src/sections/devices/cwmp/devices-wifi.js b/frontend/src/sections/devices/cwmp/devices-wifi.js index b08202c..9e07c92 100644 --- a/frontend/src/sections/devices/cwmp/devices-wifi.js +++ b/frontend/src/sections/devices/cwmp/devices-wifi.js @@ -140,9 +140,18 @@ export const DevicesWiFi = () => { {item.password.value != null && { + applyContent[index].hasChanges = true + applyContent[index].password = { + value : e.target.value + } + setApplyContent([...applyContent]) + item.password.value = e.target.value + }} />} {item.standard.value != null && { label="Standard" disabled={!item.standard.writable} value={item.standard.value} + onChange={(e) => { + applyContent[index].hasChanges = true + applyContent[index].standard = { + value : e.target.value + } + setApplyContent([...applyContent]) + item.standard.value = e.target.value + }} />}