feat: Add toggle network (#49)
This commit is contained in:
parent
c07e04e976
commit
fe7e74459e
|
@ -219,4 +219,8 @@ proc onAsyncFetchCryptoServices*(self: StatusWalletController, response: string)
|
|||
self.events.emit("wallet2_cryptoServicesFetched", CryptoServicesArg())
|
||||
return
|
||||
|
||||
self.events.emit("wallet2_cryptoServicesFetched", CryptoServicesArg(services: responseArray))
|
||||
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