2020-08-25 18:44:29 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../../shared"
|
|
|
|
import "../../../../../../imports"
|
2020-09-03 20:14:44 +00:00
|
|
|
import "../../ChatComponents"
|
2020-08-25 18:44:29 +00:00
|
|
|
|
|
|
|
Item {
|
|
|
|
width: parent.width
|
2020-09-03 20:43:08 +00:00
|
|
|
height: childrenRect.height + Style.current.halfPadding
|
2020-08-25 18:44:29 +00:00
|
|
|
|
|
|
|
Separator {
|
|
|
|
id: separator
|
|
|
|
}
|
|
|
|
|
|
|
|
StyledText {
|
|
|
|
id: signText
|
|
|
|
color: Style.current.blue
|
2020-09-14 12:12:47 +00:00
|
|
|
//% "Sign and send"
|
|
|
|
text: qsTrId("sign-and-send")
|
2020-08-25 18:44:29 +00:00
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
font.weight: Font.Medium
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.left: parent.left
|
|
|
|
topPadding: Style.current.halfPadding
|
2020-09-03 20:43:08 +00:00
|
|
|
anchors.top: separator.bottom
|
2020-08-25 18:44:29 +00:00
|
|
|
font.pixelSize: 15
|
|
|
|
|
|
|
|
MouseArea {
|
|
|
|
anchors.fill: parent
|
|
|
|
cursorShape: Qt.PointingHandCursor
|
|
|
|
onClicked: {
|
2020-09-08 21:22:47 +00:00
|
|
|
walletModel.setFocusedAccountByAddress(commandParametersObject.fromAddress)
|
|
|
|
var acc = walletModel.focusedAccount
|
|
|
|
signTransactionModal.selectedAccount = {
|
|
|
|
name: acc.name,
|
|
|
|
address: commandParametersObject.fromAddress,
|
|
|
|
iconColor: acc.iconColor,
|
|
|
|
assets: acc.assets
|
|
|
|
}
|
2020-09-03 20:14:44 +00:00
|
|
|
signTransactionModal.open()
|
2020-08-25 18:44:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-03 20:14:44 +00:00
|
|
|
|
|
|
|
SignTransactionModal {
|
|
|
|
id: signTransactionModal
|
|
|
|
onOpened: {
|
|
|
|
walletModel.getGasPricePredictions()
|
|
|
|
}
|
2020-09-08 21:22:47 +00:00
|
|
|
selectedAccount: {}
|
2020-09-03 20:14:44 +00:00
|
|
|
selectedRecipient: {
|
|
|
|
return {
|
|
|
|
address: commandParametersObject.address,
|
|
|
|
identicon: chatsModel.activeChannel.identicon,
|
|
|
|
name: chatsModel.activeChannel.name,
|
|
|
|
type: RecipientSelector.Type.Contact
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selectedAsset: {
|
2020-09-08 21:22:47 +00:00
|
|
|
return {
|
2020-09-03 20:14:44 +00:00
|
|
|
name: token.name,
|
|
|
|
symbol: token.symbol,
|
|
|
|
address: commandParametersObject.contract
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selectedAmount: tokenAmount
|
|
|
|
selectedFiatAmount: fiatValue
|
|
|
|
}
|
2020-08-25 18:44:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;formeditorColor:"#ffffff";formeditorZoom:1.25}
|
|
|
|
}
|
|
|
|
##^##*/
|
|
|
|
|