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 GitHub
parent eb96e5e08d
commit 6c5957a492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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