fix(@desktop/wallet): [base_bc] can't copy wallet address
Store propagation in order to use the global copyToClipboard method. It is also applied in WalletV2. Fixes #4636
This commit is contained in:
parent
f3485446c3
commit
9673c399e5
|
@ -16,6 +16,7 @@ Item {
|
||||||
id: walletView
|
id: walletView
|
||||||
|
|
||||||
property bool hideSignPhraseModal: false
|
property bool hideSignPhraseModal: false
|
||||||
|
property var store
|
||||||
|
|
||||||
function showSigningPhrasePopup(){
|
function showSigningPhrasePopup(){
|
||||||
if(!hideSignPhraseModal && !RootStore.hideSignPhraseModal){
|
if(!hideSignPhraseModal && !RootStore.hideSignPhraseModal){
|
||||||
|
@ -74,6 +75,7 @@ Item {
|
||||||
id: walletContainer
|
id: walletContainer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
changeSelectedAccount: leftTab.changeSelectedAccount
|
changeSelectedAccount: leftTab.changeSelectedAccount
|
||||||
|
store: walletView.store
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ Item {
|
||||||
property string currency: ""
|
property string currency: ""
|
||||||
property var currentAccount
|
property var currentAccount
|
||||||
property var changeSelectedAccount
|
property var changeSelectedAccount
|
||||||
|
property var store
|
||||||
|
|
||||||
height: walletAddress.y + walletAddress.height
|
height: walletAddress.y + walletAddress.height
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
@ -72,6 +73,7 @@ Item {
|
||||||
addressWidth: 180
|
addressWidth: 180
|
||||||
anchors.leftMargin: 0
|
anchors.leftMargin: 0
|
||||||
anchors.topMargin: 0
|
anchors.topMargin: 0
|
||||||
|
store: walletHeader.store
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
|
|
@ -18,6 +18,7 @@ Item {
|
||||||
|
|
||||||
property var changeSelectedAccount
|
property var changeSelectedAccount
|
||||||
property alias currentTabIndex: walletTabBar.currentIndex
|
property alias currentTabIndex: walletTabBar.currentIndex
|
||||||
|
property var store
|
||||||
|
|
||||||
WalletHeader {
|
WalletHeader {
|
||||||
id: walletHeader
|
id: walletHeader
|
||||||
|
@ -25,6 +26,7 @@ Item {
|
||||||
currency: RootStore.currentCurrency
|
currency: RootStore.currentCurrency
|
||||||
currentAccount: RootStore.currentAccount
|
currentAccount: RootStore.currentAccount
|
||||||
changeSelectedAccount: walletContainer.changeSelectedAccount
|
changeSelectedAccount: walletContainer.changeSelectedAccount
|
||||||
|
store: walletContainer.store
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
|
@ -97,6 +97,7 @@ Item {
|
||||||
id: walletInfoContent
|
id: walletInfoContent
|
||||||
WalletHeaderPanel {
|
WalletHeaderPanel {
|
||||||
id: walletHeader
|
id: walletHeader
|
||||||
|
store: walletView.store
|
||||||
// Not Refactored Yet
|
// Not Refactored Yet
|
||||||
// accountsModel: walletView.store.walletModelV2Inst.accountsView.accounts
|
// accountsModel: walletView.store.walletModelV2Inst.accountsView.accounts
|
||||||
// currentAccount: walletView.store.walletModelV2Inst.accountsView.currentAccount
|
// currentAccount: walletView.store.walletModelV2Inst.accountsView.currentAccount
|
||||||
|
|
|
@ -22,6 +22,7 @@ Item {
|
||||||
property var currentAccount
|
property var currentAccount
|
||||||
property var enabledNetworksModel
|
property var enabledNetworksModel
|
||||||
property var allNetworksModel
|
property var allNetworksModel
|
||||||
|
property var store
|
||||||
signal copyText(string text)
|
signal copyText(string text)
|
||||||
signal toggleNetwork(int chainId)
|
signal toggleNetwork(int chainId)
|
||||||
|
|
||||||
|
@ -73,6 +74,7 @@ Item {
|
||||||
anchors.left: accountRow.left
|
anchors.left: accountRow.left
|
||||||
addressWidth: 180
|
addressWidth: 180
|
||||||
address: walletHeader.currentAccount? walletHeader.currentAccount.address : ""
|
address: walletHeader.currentAccount? walletHeader.currentAccount.address : ""
|
||||||
|
store: walletHeader.store
|
||||||
}
|
}
|
||||||
|
|
||||||
NetworkSelectPanel {
|
NetworkSelectPanel {
|
||||||
|
|
|
@ -482,6 +482,7 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
store: appMain.rootStore
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
Component {
|
||||||
|
@ -490,6 +491,7 @@ Item {
|
||||||
globalStore: appMain.rootStore
|
globalStore: appMain.rootStore
|
||||||
sendTransactionModal: sendModal
|
sendTransactionModal: sendModal
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
@ -16,6 +16,7 @@ Item {
|
||||||
property bool expanded: false
|
property bool expanded: false
|
||||||
property int addressWidth
|
property int addressWidth
|
||||||
property int originalButtonWidth
|
property int originalButtonWidth
|
||||||
|
property var store
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
id: control
|
id: control
|
||||||
|
@ -81,6 +82,7 @@ Item {
|
||||||
anchors.leftMargin: Style.current.smallPadding
|
anchors.leftMargin: Style.current.smallPadding
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
textToCopy: root.address
|
textToCopy: root.address
|
||||||
|
store: root.store
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
propagateComposedEvents: true
|
propagateComposedEvents: true
|
||||||
|
|
Loading…
Reference in New Issue