feat: Add toggle network (#49)
This commit is contained in:
parent
c07e04e976
commit
fe7e74459e
|
@ -220,3 +220,7 @@ proc onAsyncFetchCryptoServices*(self: StatusWalletController, response: string)
|
|||
return
|
||||
|
||||
self.events.emit("wallet2_cryptoServicesFetched", CryptoServicesArg(services: responseArray))
|
||||
|
||||
proc toggleNetwork*(self: StatusWalletController, network: Network) =
|
||||
network.enabled = not network.enabled
|
||||
status_network.upsertNetwork(network)
|
Loading…
Reference in New Issue