fix: unbreak importing community from settings
the ProfileSectionStore is simply missing the required method to proceed (note that this popup is used in 2 different contexts; the one in Community Portal works fine due to the fact it's passed a different store!)
This commit is contained in:
parent
c65de87ad0
commit
d75d723f5e
|
@ -9,7 +9,7 @@ QtObject {
|
|||
property string backButtonName
|
||||
|
||||
property var aboutModuleInst: aboutModule
|
||||
|
||||
property var mainModuleInst: mainModule
|
||||
property var profileSectionModuleInst: profileSectionModule
|
||||
|
||||
readonly property bool fetchingUpdate: aboutModuleInst.fetching
|
||||
|
@ -143,6 +143,14 @@ QtObject {
|
|||
root.communitiesModuleInst.importCommunity(communityKey);
|
||||
}
|
||||
|
||||
function requestCommunityInfo(communityKey, importing = false) {
|
||||
const publicKey = Utils.isCompressedPubKey(communityKey)
|
||||
? Utils.changeCommunityKeyCompression(communityKey)
|
||||
: communityKey
|
||||
root.mainModuleInst.setCommunityIdToSpectate(publicKey)
|
||||
root.communitiesModuleInst.requestCommunityInfo(publicKey, importing)
|
||||
}
|
||||
|
||||
function getCurrentVersion() {
|
||||
return aboutModuleInst.getCurrentVersion()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue