From dce2728bdbb8eb2ec2b2c5be1dc397d2bd653ca5 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 15 Mar 2026 00:45:59 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20permissions=20modal=20=E2=80=94=20repla?= =?UTF-8?q?ce=20folder=20dropdown=20with=20per-list=20checkboxes;=20fix=20?= =?UTF-8?q?savePermissions=20body?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- portal/templates/app/project.html | 52 ++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/portal/templates/app/project.html b/portal/templates/app/project.html index 043d784..bd22362 100644 --- a/portal/templates/app/project.html +++ b/portal/templates/app/project.html @@ -262,12 +262,15 @@ Edit request lists -
- Folder access - +
+
+ Visible request lists + +
+
@@ -997,7 +1000,13 @@ ${perms.upload ? '📤 Upload' : ''} ${perms.add_request_lists ? '➕ Add lists' : ''} ${perms.edit_request_lists ? '✏️ Edit lists' : ''} - ${perms.folder_access === 'all' ? '📂 All folders' : '📂 Assigned only'} + ${(() => { + const vl = perms.visible_lists; + if (!vl || vl === 'all') return '📂 All lists'; + if (Array.isArray(vl) && vl.length === 0) return '📂 No lists'; + if (Array.isArray(vl)) return '📂 ' + vl.length + ' list' + (vl.length > 1 ? 's' : ''); + return '📂 All lists'; + })()}