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 {
implicitWidth: parent.width
implicitHeight: parent.height
myPublicKey: root.store.contactsStore.myPublicKey
currencySymbol: root.sharedRootStore.currencyStore.currentCurrency
contentWidth: d.contentWidth
rootStore: root.store
tokensStore: root.tokensStore
networkConnectionStore: root.networkConnectionStore
assetsStore: root.walletAssetsStore
collectiblesStore: root.collectiblesStore
myPublicKey: root.store.contactsStore.myPublicKey
currencySymbol: root.sharedRootStore.currencyStore.currentCurrency
emojiPopup: root.emojiPopup
sendModalPopup: root.sendModalPopup
sectionTitle: root.store.getNameForSubsection(Constants.settingsSubsection.wallet)
contentWidth: d.contentWidth
}
onLoaded: root.store.backButtonName = ""
}

View File

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

View File

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

View File

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