Update Transfer.qml

This commit is contained in:
rating89us 2021-11-21 19:17:14 +01:00 committed by GitHub
parent fdfb15f795
commit b77c6d6ba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -557,25 +557,6 @@ Rectangle {
Layout.topMargin: recipientModel.count > 1 ? 0 : -1
spacing: 0
MoneroComponents.StandardButton {
id: addRecipientButton
small: true
primary: false
text: "+ " + qsTr("Add recipient") + translationManager.emptyString
enabled: {
if (recipientModel.count > 0 && recipientModel.get(0).amount == "(all)") {
return false;
}
if (recipientModel.count >= recipientModel.maxRecipients) {
return false;
}
return true;
}
onClicked: {
recipientModel.newRecipient("", "");
}
}
MoneroComponents.TextPlain {
Layout.fillWidth: true
horizontalAlignment: Text.AlignRight
@ -616,6 +597,27 @@ Rectangle {
visible: recipientModel.count > 1
}
MoneroComponents.StandardButton {
id: addRecipientButton
Layout.column: 0
Layout.row: 1
small: true
primary: false
text: "+ " + qsTr("Add recipient") + translationManager.emptyString
enabled: {
if (recipientModel.count > 0 && recipientModel.get(0).amount == "(all)") {
return false;
}
if (recipientModel.count >= recipientModel.maxRecipients) {
return false;
}
return true;
}
onClicked: {
recipientModel.newRecipient("", "");
}
}
MoneroComponents.LineEdit {
Layout.column: 1
Layout.row: recipientModel.count > 1 ? 1 : 0
@ -815,6 +817,7 @@ Rectangle {
text: FontAwesome.times
tooltip: qsTr("Remove description") + translationManager.emptyString
tooltipLeft: true
tooltipExitAnimationDuration: 0
visible: descriptionLabel.visible
MouseArea {