Show the transfer key.

This commit is contained in:
Philippe PITTOLI 2024-04-28 01:24:33 +02:00
parent 67d0ca700f
commit 108c78a206

View File

@ -256,7 +256,9 @@ render { accepted_domains, my_domains, newDomainForm, askDomainTransferForm, del
owned_domain_row domain = HH.tr_
[ HH.td_ [ Bulma.btn domain.name (EnterDomain domain.name) ]
, HH.td_ [ Bulma.btn "Transfer" (TransferDomain domain.name) ]
, case domain.transfer_key of
Just key -> HH.td_ [ Bulma.p key ]
Nothing -> HH.td_ [ Bulma.btn "Transfer" (TransferDomain domain.name) ]
, HH.td_ [ Bulma.btn "Share" (ShareDomain domain.name) ]
, HH.td_ [ Bulma.alert_btn "Delete" (DeleteDomainModal domain.name) ]
]