wifinetworks:make password vissibility off after authEntry hide

This commit is contained in:
Satoxyan
2025-03-29 14:05:57 +07:00
parent e267e4e821
commit 53072cb815
@@ -155,6 +155,8 @@ const CurrentNetwork = () => {
label: getString('Cancel'),
hpack: 'end',
onClicked: () => {
passwordVisible = false;
authEntry.visibility = false;
networkAuth.revealChild = false;
authFailed.revealChild = false;
networkAuthSSID.label = '';
@@ -204,6 +206,8 @@ const CurrentNetwork = () => {
networkAuth.revealChild = false; // Hide input if successful
authFailed.revealChild = false; // Hide failed message if successful
self.text = ''; // Empty input for retry
passwordVisible = false;
authEntry.visibility = false;
})
.catch(() => {
// Connection failed, show password input again
@@ -307,6 +311,8 @@ const CurrentNetwork = () => {
}
timeoutId = setTimeout(() => {
authLock = false;
passwordVisible = false;
authEntry.visibility = false;
self.revealChild = false;
authFailed.revealChild = false;
Network.wifi.state = 'activated';