2020-08-25 18:44:29 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../../shared"
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-09-03 20:14:44 +00:00
|
|
|
import "../../ChatComponents"
|
2020-08-25 18:44:29 +00:00
|
|
|
|
|
|
|
Item {
|
2020-10-16 07:37:07 +00:00
|
|
|
id: root
|
2020-08-25 18:44:29 +00:00
|
|
|
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
|
2021-02-18 16:36:05 +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: {
|
2021-06-08 12:48:31 +00:00
|
|
|
walletModel.accountsView.setFocusedAccountByAddress(commandParametersObject.fromAddress)
|
|
|
|
var acc = walletModel.accountsView.focusedAccount
|
2021-01-20 17:05:07 +00:00
|
|
|
openPopup(signTxComponent, {selectedAccount: {
|
|
|
|
name: acc.name,
|
|
|
|
address: commandParametersObject.fromAddress,
|
|
|
|
iconColor: acc.iconColor,
|
|
|
|
assets: acc.assets
|
|
|
|
}})
|
2020-08-25 18:44:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-03 20:14:44 +00:00
|
|
|
|
2021-01-20 17:05:07 +00:00
|
|
|
Component {
|
|
|
|
id: signTxComponent
|
|
|
|
SignTransactionModal {
|
2020-11-03 10:29:56 +00:00
|
|
|
onOpened: {
|
2021-07-05 12:34:56 +00:00
|
|
|
walletModel.gasView.getGasPrice()
|
2020-11-03 10:29:56 +00:00
|
|
|
}
|
|
|
|
onClosed: {
|
2021-01-20 17:05:07 +00:00
|
|
|
destroy();
|
2020-11-03 10:29:56 +00:00
|
|
|
}
|
|
|
|
selectedRecipient: {
|
|
|
|
return {
|
|
|
|
address: commandParametersObject.address,
|
2021-06-17 22:09:00 +00:00
|
|
|
identicon: chatsModel.channelView.activeChannel.identicon,
|
|
|
|
name: chatsModel.channelView.activeChannel.name,
|
2020-11-03 10:29:56 +00:00
|
|
|
type: RecipientSelector.Type.Contact
|
|
|
|
}
|
2020-09-03 20:14:44 +00:00
|
|
|
}
|
2020-11-03 10:29:56 +00:00
|
|
|
selectedAsset: token
|
|
|
|
selectedAmount: tokenAmount
|
|
|
|
selectedFiatAmount: fiatValue
|
2020-09-03 20:14:44 +00:00
|
|
|
}
|
|
|
|
}
|
2020-08-25 18:44:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;formeditorColor:"#ffffff";formeditorZoom:1.25}
|
|
|
|
}
|
|
|
|
##^##*/
|
|
|
|
|