From 6c5957a4926b2632eb0bb7cb7f983e5eb65a6afb Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 12 May 2022 16:27:35 -0400 Subject: [PATCH] fix(StatusTagSelector): hide contact when it is selected (#668) --- src/StatusQ/Components/StatusTagSelector.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusTagSelector.qml b/src/StatusQ/Components/StatusTagSelector.qml index 5ee33282..14dee686 100644 --- a/src/StatusQ/Components/StatusTagSelector.qml +++ b/src/StatusQ/Components/StatusTagSelector.qml @@ -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