rvv001 - Privacy Policy control addedin TUI's send transaction form
This feature is similar to GUI's implementation.
This commit is contained in:
parent
b6b586f9bf
commit
398f4f1dcf
2 changed files with 2 additions and 2 deletions
|
@ -107,6 +107,7 @@ import Zenith.Utils
|
||||||
( displayTaz
|
( displayTaz
|
||||||
, displayZec
|
, displayZec
|
||||||
, isRecipientValid
|
, isRecipientValid
|
||||||
|
, isRecipientValidGUI
|
||||||
, jsonNumber
|
, jsonNumber
|
||||||
, parseAddressUA
|
, parseAddressUA
|
||||||
, showAddress
|
, showAddress
|
||||||
|
@ -1132,7 +1133,7 @@ appEvent (BT.VtyEvent e) = do
|
||||||
fs <- BT.gets formState
|
fs <- BT.gets formState
|
||||||
BT.modify $
|
BT.modify $
|
||||||
setFieldValid
|
setFieldValid
|
||||||
(isRecipientValid (fs ^. sendTo))
|
(isRecipientValidGUI (fs ^. policyField) (fs ^. sendTo))
|
||||||
RecField
|
RecField
|
||||||
AdrBook -> do
|
AdrBook -> do
|
||||||
case e of
|
case e of
|
||||||
|
|
|
@ -173,7 +173,6 @@ isRecipientValidGUI p a = do
|
||||||
Exchange ea -> True
|
Exchange ea -> True
|
||||||
_ -> False
|
_ -> False
|
||||||
Nothing -> False
|
Nothing -> False
|
||||||
|
|
||||||
None -> case adr of
|
None -> case adr of
|
||||||
Just a ->
|
Just a ->
|
||||||
case a of
|
case a of
|
||||||
|
|
Loading…
Reference in a new issue