From df3452d24d8758e038b161429bcac02de2a3b7c1 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/ui/StatusQ/src/StatusQ/Components/StatusTagSelector.qml b/ui/StatusQ/src/StatusQ/Components/StatusTagSelector.qml index 5ee33282df..14dee6868c 100644 --- a/ui/StatusQ/src/StatusQ/Components/StatusTagSelector.qml +++ b/ui/StatusQ/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