Implement copy of TX id

This commit is contained in:
Rene Vergara 2024-06-27 10:05:41 -05:00
parent 7956a2ec22
commit 709cfde151
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2
2 changed files with 11 additions and 3 deletions

View file

@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Dialog to display and copy seed phrase
- Dialog to add new address
- Dialog to add new account
- Dialog to add new wallet
- Dialog to display transaction details and copy TX ID
## [0.5.3.0-beta]

View file

@ -144,8 +144,8 @@ buildUI wenv model = widgetTree
[ mainWindow
, confirmOverlay `nodeVisible` isJust (model ^. confirmTitle)
, seedOverlay `nodeVisible` model ^. showSeed
, msgOverlay `nodeVisible` isJust (model ^. msg)
, txOverlay `nodeVisible` isJust (model ^. showTx)
, msgOverlay `nodeVisible` isJust (model ^. msg)
, modalOverlay `nodeVisible` isJust (model ^. modalMsg)
]
mainWindow =
@ -564,11 +564,17 @@ buildUI wenv model = widgetTree
getHex $
userTxHex $ entityVal $ (model ^. transactions) !! i)
[multiline]
, spacer
, box_
[]
[ onClick $
CopyTx $
toText $
getHex $
userTxHex $ entityVal $ (model ^. transactions) !! i
]
(remixIcon remixFileCopyFill `styleBasic`
[textColor white]) `styleBasic`
[bgColor btnColor, radius 2]
[cursorHand, bgColor btnColor, radius 2, padding 2]
]) `styleBasic`
[padding 2, bgColor white, width 280, borderB 1 gray]
, box_