mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-22 19:49:34 +00:00
Update Transfer.qml
This commit is contained in:
parent
fdfb15f795
commit
b77c6d6ba7
1 changed files with 22 additions and 19 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue