fix(StatusTagSelector): hide contact when it is selected (#668)

This commit is contained in:
Jonathan Rainville 2022-05-12 16:27:35 -04:00 committed by Michał Cieślak
parent 818374af1a
commit df3452d24d
1 changed files with 9 additions and 1 deletions

View File

@ -340,7 +340,15 @@ Item {
id: wrapper
anchors.right: parent.right
anchors.left: parent.left
height: 64
height: visible ? 64 : 0
visible: {
for (let i = 0; i < namesModel.count; i++) {
if (namesModel.get(i).publicId === model.publicId) {
return false
}
}
return true
}
Rectangle {
id: rectangle
anchors.fill: parent