fix(Communities): make opening profile popup from within memberlist work again
This broken when we refactored the modal to be a `StatusModal` because the loaded content can no longer rely on globals.
This commit is contained in:
parent
8a504ce190
commit
e6059db5ac
|
@ -10,6 +10,7 @@ import StatusQ.Popups 0.1
|
|||
|
||||
import "../../../../imports"
|
||||
import "../../../../shared"
|
||||
import "../components"
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
@ -174,7 +175,14 @@ Item {
|
|||
//% "View Profile"
|
||||
text: qsTrId("view-profile")
|
||||
icon.name: "channel"
|
||||
onTriggered: openProfilePopup(model.userName, model.pubKey, memberItem.image.source, '', memberItem.nickname)
|
||||
onTriggered: openPopup(profilePopup, {
|
||||
noFooter: profileModel.profile.pubKey !== model.pubKey,
|
||||
userName: model.userName,
|
||||
fromAuthor: model.pubKey,
|
||||
identicon: memberItem.image.source,
|
||||
text: '',
|
||||
nickname: memberItem.nickname
|
||||
})
|
||||
}
|
||||
|
||||
StatusMenuSeparator {
|
||||
|
@ -216,4 +224,14 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: profilePopup
|
||||
ProfilePopup {
|
||||
height: 504
|
||||
onClosed: {
|
||||
destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue