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({
onClicked: accessPoint.active ? () => { } : () => execAsync(`nmcli device wifi connect ${accessPoint.bssid}`).catch(e => {
Utils.notify({
summary: "Network",
body: e,
actions: { "Open network manager": () => execAsync("nm-connection-editor").catch(print) }
});
}).catch(e => console.error(e)),
onClicked: accessPoint.active ? () => { } : () => execAsync(`nmcli device wifi connect ${accessPoint.bssid}`)
// .catch(e => {
// Utils.notify({
// summary: "Network",
// body: e,
// actions: { "Open network manager": () => execAsync("nm-connection-editor").catch(print) }
// });
// })
.catch(print),
child: Box({
className: 'sidebar-wifinetworks-network spacing-h-10',
children: [