From 93975451eafc4ef2a62532e265a778077bafa8a9 Mon Sep 17 00:00:00 2001 From: h Date: Sat, 19 Sep 2026 23:35:56 +0200 Subject: [PATCH] feat(templates): hide templates org from portfolio --- templates/custom/portfolio.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/custom/portfolio.tmpl b/templates/custom/portfolio.tmpl index 9785076..b812661 100644 --- a/templates/custom/portfolio.tmpl +++ b/templates/custom/portfolio.tmpl @@ -239,6 +239,8 @@ document.addEventListener('DOMContentLoaded', async () => { const orgSelect = document.getElementById('org-select'); const filterButtons = document.querySelectorAll('#portfolio-controls .ui.buttons .button'); + const HIDDEN_ORGS = ['templates']; + let allItems = []; let filteredItems = []; let currentMainFilter = 'all'; @@ -287,7 +289,7 @@ document.addEventListener('DOMContentLoaded', async () => { const orgsRes = await fetch(`${API_BASE}/orgs`); if (!orgsRes.ok) throw new Error('failed to fetch orgs'); - const orgs = await orgsRes.json(); + const orgs = (await orgsRes.json()).filter(org => !HIDDEN_ORGS.includes(org.username.toLowerCase())); const items = []; const orgNames = new Set();