SendModal handler removed from ProfileSectionStore

This commit is contained in:
Michał Cieślak 2024-10-15 10:14:36 +02:00 committed by Michał
parent 3bf415add0
commit dc3a1ca39b
4 changed files with 11 additions and 9 deletions

View File

@ -247,16 +247,19 @@ StatusSectionLayout {
sourceComponent: WalletView { sourceComponent: WalletView {
implicitWidth: parent.width implicitWidth: parent.width
implicitHeight: parent.height implicitHeight: parent.height
myPublicKey: root.store.contactsStore.myPublicKey contentWidth: d.contentWidth
currencySymbol: root.sharedRootStore.currencyStore.currentCurrency
rootStore: root.store rootStore: root.store
tokensStore: root.tokensStore tokensStore: root.tokensStore
networkConnectionStore: root.networkConnectionStore networkConnectionStore: root.networkConnectionStore
assetsStore: root.walletAssetsStore assetsStore: root.walletAssetsStore
collectiblesStore: root.collectiblesStore collectiblesStore: root.collectiblesStore
myPublicKey: root.store.contactsStore.myPublicKey
currencySymbol: root.sharedRootStore.currencyStore.currentCurrency
emojiPopup: root.emojiPopup emojiPopup: root.emojiPopup
sendModalPopup: root.sendModalPopup
sectionTitle: root.store.getNameForSubsection(Constants.settingsSubsection.wallet) sectionTitle: root.store.getNameForSubsection(Constants.settingsSubsection.wallet)
contentWidth: d.contentWidth
} }
onLoaded: root.store.backButtonName = "" onLoaded: root.store.backButtonName = ""
} }

View File

@ -18,8 +18,6 @@ QtObject {
property var mainModuleInst: mainModule property var mainModuleInst: mainModule
property var profileSectionModuleInst: profileSectionModule property var profileSectionModuleInst: profileSectionModule
property var sendModalPopup
readonly property bool fetchingUpdate: aboutModuleInst.fetching readonly property bool fetchingUpdate: aboutModuleInst.fetching
property ContactsStore contactsStore: ContactsStore { property ContactsStore contactsStore: ContactsStore {

View File

@ -41,6 +41,8 @@ SettingsContentBase {
required property WalletAssetsStore assetsStore required property WalletAssetsStore assetsStore
required property CollectiblesStore collectiblesStore required property CollectiblesStore collectiblesStore
required property var sendModalPopup
readonly property int mainViewIndex: 0 readonly property int mainViewIndex: 0
readonly property int networksViewIndex: 1 readonly property int networksViewIndex: 1
readonly property int editNetworksViewIndex: 2 readonly property int editNetworksViewIndex: 2
@ -367,7 +369,7 @@ SettingsContentBase {
id: savedAddressesView id: savedAddressesView
contactsStore: root.rootStore.contactsStore contactsStore: root.rootStore.contactsStore
networkConnectionStore: root.networkConnectionStore networkConnectionStore: root.networkConnectionStore
sendModal: root.rootStore.sendModalPopup sendModal: root.sendModalPopup
} }
Component { Component {

View File

@ -59,9 +59,8 @@ Item {
currencyStore: appMain.currencyStore currencyStore: appMain.currencyStore
} }
property AppStores.RootStore rootStore: AppStores.RootStore { property AppStores.RootStore rootStore: AppStores.RootStore {}
profileSectionStore.sendModalPopup: sendModal
}
property ChatStores.RootStore rootChatStore: ChatStores.RootStore { property ChatStores.RootStore rootChatStore: ChatStores.RootStore {
contactsStore: appMain.rootStore.contactStore contactsStore: appMain.rootStore.contactStore
currencyStore: appMain.currencyStore currencyStore: appMain.currencyStore