Milestone 2: Graphic User Interface #93
1 changed files with 4 additions and 2 deletions
|
@ -866,10 +866,11 @@ handleEvent wenv node model evt =
|
||||||
ShowSend -> [Model $ model & openSend .~ True]
|
ShowSend -> [Model $ model & openSend .~ True]
|
||||||
SendTx ->
|
SendTx ->
|
||||||
case currentAccount of
|
case currentAccount of
|
||||||
Nothing -> [Event $ ShowError "No account available"]
|
Nothing -> [Event $ ShowError "No account available", Event CancelSend]
|
||||||
Just acc ->
|
Just acc ->
|
||||||
case currentWallet of
|
case currentWallet of
|
||||||
Nothing -> [Event $ ShowError "No wallet available"]
|
Nothing ->
|
||||||
|
[Event $ ShowError "No wallet available", Event CancelSend]
|
||||||
Just wal ->
|
Just wal ->
|
||||||
[ Producer $
|
[ Producer $
|
||||||
sendTransaction
|
sendTransaction
|
||||||
|
@ -880,6 +881,7 @@ handleEvent wenv node model evt =
|
||||||
(model ^. sendAmount)
|
(model ^. sendAmount)
|
||||||
(model ^. sendRecipient)
|
(model ^. sendRecipient)
|
||||||
(model ^. sendMemo)
|
(model ^. sendMemo)
|
||||||
|
, Event CancelSend
|
||||||
]
|
]
|
||||||
CancelSend ->
|
CancelSend ->
|
||||||
[ Model $
|
[ Model $
|
||||||
|
|
Loading…
Reference in a new issue