fix(@desktop/profile): Blocked contacts counter doesn't show actual number
fixes #3421
This commit is contained in:
parent
c030879c18
commit
15a1646d4a
|
@ -69,9 +69,9 @@ Item {
|
||||||
id: blockedContactsButton
|
id: blockedContactsButton
|
||||||
anchors.top: addNewContact.bottom
|
anchors.top: addNewContact.bottom
|
||||||
anchors.topMargin: Style.current.bigPadding
|
anchors.topMargin: Style.current.bigPadding
|
||||||
width: blockButton.width + blockButtonLabel.width + Style.current.padding
|
width: parent.width
|
||||||
visible: profileModel.contacts.blockedContacts.rowCount() > 0
|
visible: profileModel.contacts.blockedContacts.rowCount() > 0
|
||||||
height: addButton.height
|
height: 64
|
||||||
|
|
||||||
StatusRoundButton {
|
StatusRoundButton {
|
||||||
id: blockButton
|
id: blockButton
|
||||||
|
@ -93,6 +93,16 @@ Item {
|
||||||
font.pixelSize: 15
|
font.pixelSize: 15
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
id: numberOfBlockedContacts
|
||||||
|
text: profileModel.contacts.blockedContacts.rowCount()
|
||||||
|
color: Style.current.darkGrey
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: Style.current.padding
|
||||||
|
anchors.verticalCenter: blockButton.verticalCenter
|
||||||
|
font.pixelSize: 15
|
||||||
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
@ -213,7 +223,7 @@ Item {
|
||||||
|
|
||||||
ContactList {
|
ContactList {
|
||||||
id: contactListView
|
id: contactListView
|
||||||
anchors.top: blockedContactsButton.bottom
|
anchors.top: blockedContactsButton.visible ? blockedContactsButton.bottom : addNewContact.bottom
|
||||||
anchors.topMargin: Style.current.bigPadding
|
anchors.topMargin: Style.current.bigPadding
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
contacts: profileModel.contacts.addedContacts
|
contacts: profileModel.contacts.addedContacts
|
||||||
|
|
Loading…
Reference in New Issue