parent
cdd79a87e7
commit
619d0e56ac
|
@ -158,7 +158,7 @@ Popup {
|
|||
anchors.topMargin: Style.current.halfPadding
|
||||
icon.name: "send"
|
||||
onClicked: {
|
||||
sendModal.selectFromAccount.selectedAccount = accountSelector.selectedAccount
|
||||
sendModal.selectedAccount = accountSelector.selectedAccount
|
||||
sendModal.open()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -612,11 +612,12 @@ Item {
|
|||
id: toastMessage
|
||||
}
|
||||
|
||||
// Add SendModal here as it is used by the Wallet as well as the Browser
|
||||
// ToDo: move this to Global or similar in order to get rid of dynamic scoping
|
||||
Loader {
|
||||
id: sendModal
|
||||
active: false
|
||||
|
||||
property var selectedAccount
|
||||
function open() {
|
||||
this.active = true
|
||||
this.item.open()
|
||||
|
@ -625,6 +626,11 @@ Item {
|
|||
// this.sourceComponent = undefined // kill an opened instance
|
||||
this.active = false
|
||||
}
|
||||
onLoaded: {
|
||||
if( item && sendModal.selectedAccount) {
|
||||
item.selectFromAccount.selectedAccount = sendModal.selectedAccount
|
||||
}
|
||||
}
|
||||
sourceComponent: SendModal {
|
||||
store: appMain.rootStore
|
||||
onOpened: {
|
||||
|
|
|
@ -107,7 +107,7 @@ ModalPopup {
|
|||
RecipientSelector {
|
||||
id: selectRecipient
|
||||
accounts: root.store.accounts
|
||||
contacts: popup.store.addedContacts
|
||||
contacts: root.store.addedContacts
|
||||
//% "Recipient"
|
||||
label: qsTrId("recipient")
|
||||
anchors.top: separator.bottom
|
||||
|
|
Loading…
Reference in New Issue