remove network error notif thingie

This commit is contained in:
end-4
2024-04-02 22:02:58 +07:00
parent 2dd100c5d9
commit a1d4ea9594
@@ -37,13 +37,15 @@ const WifiNetwork = (accessPoint) => {
] ]
}); });
return Button({ return Button({
onClicked: accessPoint.active ? () => { } : () => execAsync(`nmcli device wifi connect ${accessPoint.bssid}`).catch(e => { onClicked: accessPoint.active ? () => { } : () => execAsync(`nmcli device wifi connect ${accessPoint.bssid}`)
Utils.notify({ // .catch(e => {
summary: "Network", // Utils.notify({
body: e, // summary: "Network",
actions: { "Open network manager": () => execAsync("nm-connection-editor").catch(print) } // body: e,
}); // actions: { "Open network manager": () => execAsync("nm-connection-editor").catch(print) }
}).catch(e => console.error(e)), // });
// })
.catch(print),
child: Box({ child: Box({
className: 'sidebar-wifinetworks-network spacing-h-10', className: 'sidebar-wifinetworks-network spacing-h-10',
children: [ children: [