fix(@desktop/wallet): Swap transaction - Wrong copy on the tooltip of the 'Swap' button
fixes #16568
This commit is contained in:
parent
ab92672deb
commit
b279bcedc2
|
@ -407,9 +407,18 @@ StatusDialog {
|
||||||
}
|
}
|
||||||
return qsTr("Swap")
|
return qsTr("Swap")
|
||||||
}
|
}
|
||||||
tooltip.text: root.swapAdaptor.validSwapProposalReceived &&
|
tooltip.text: {
|
||||||
root.swapAdaptor.swapOutputData.approvalNeeded ?
|
if(root.swapAdaptor.validSwapProposalReceived) {
|
||||||
qsTr("Approve %1 spending cap to Swap").arg(fromTokenSymbol) : ""
|
if(root.swapAdaptor.swapOutputData.approvalNeeded) {
|
||||||
|
if (root.swapAdaptor.approvalPending) {
|
||||||
|
return qsTr("Approving %1 spending cap to Swap").arg(fromTokenSymbol)
|
||||||
|
} else if(!root.swapAdaptor.approvalSuccessful) {
|
||||||
|
return qsTr("Approve %1 spending cap to Swap").arg(fromTokenSymbol)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
disabledColor: Theme.palette.directColor8
|
disabledColor: Theme.palette.directColor8
|
||||||
interactive: root.swapAdaptor.validSwapProposalReceived &&
|
interactive: root.swapAdaptor.validSwapProposalReceived &&
|
||||||
editSlippagePanel.valid &&
|
editSlippagePanel.valid &&
|
||||||
|
|
Loading…
Reference in New Issue