feat(GroupInfo): allow user to visit group member profile page
Closes #638
This commit is contained in:
parent
156aaba0aa
commit
17396c85cb
|
@ -179,10 +179,22 @@ Rectangle {
|
|||
|
||||
GroupInfoPopup {
|
||||
id: groupInfoPopup
|
||||
profileClick: {
|
||||
profilePopup.openPopup.bind(profilePopup)
|
||||
}
|
||||
onClosed: {
|
||||
mouseArea.menuOpened = false
|
||||
}
|
||||
}
|
||||
|
||||
ProfilePopup {
|
||||
id: profilePopup
|
||||
onClosed: {
|
||||
if (!groupInfoPopup.opened) {
|
||||
groupInfoPopup.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ ModalPopup {
|
|||
property int memberCount: 1
|
||||
readonly property int maxMembers: 10
|
||||
property var pubKeys: []
|
||||
property var profileClick: function() {}
|
||||
|
||||
function resetSelectedMembers(){
|
||||
pubKeys = [];
|
||||
|
@ -276,8 +277,17 @@ ModalPopup {
|
|||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
font.pixelSize: 13
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
popup.profileClick(model.userName, model.pubKey, model.identicon)
|
||||
popup.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Column {
|
||||
StyledText {
|
||||
visible: model.isAdmin
|
||||
|
|
Loading…
Reference in New Issue