From 072ec88db60d29fb0d8605a80774152d8cf992bb Mon Sep 17 00:00:00 2001 From: Sebastiaan Joosten Date: Thu, 6 Aug 2026 02:15:10 -0500 Subject: [PATCH] fix: hide "New" and "+" buttons for SESSION/ONE concepts in BOX
MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SESSION and ONE are singleton concepts — only one instance ever exists. The "New {concept}" and "+" add buttons were shown regardless, implying the user could create new instances when they cannot. Guard both with tgtResourceType !== "SESSION" && tgtResourceType !== "ONE". --- .../shared/box-components/box-form/box-form.component.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/shared/box-components/box-form/box-form.component.html b/frontend/src/app/shared/box-components/box-form/box-form.component.html index 9c6c13fa1..d28a9dd58 100644 --- a/frontend/src/app/shared/box-components/box-form/box-form.component.html +++ b/frontend/src/app/shared/box-components/box-form/box-form.component.html @@ -1,7 +1,8 @@
{{ title }}
-
+ +
New {{ tgtResourceType }} @@ -16,7 +17,7 @@ [resource]="item" >