From 54338abdce9fda3dce503495da4de45b13ab08c1 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 12 May 2026 09:46:26 -0400 Subject: [PATCH] refactor(ui/templates): drop the "Show derived" toggle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Derived templates are slot-owned and reached only via their owning parent's composition leaf in the tree — there's no scenario where listing them as standalone root nodes is useful, so the toggle was dead UI. Remove the form-switch, the _showDerived state, and the OnToggleShowDerived handler; BuildTemplateTree filters derived templates out unconditionally. --- .../Components/Pages/Design/Templates.razor | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/src/ScadaLink.CentralUI/Components/Pages/Design/Templates.razor b/src/ScadaLink.CentralUI/Components/Pages/Design/Templates.razor index 4f2511a..b811c92 100644 --- a/src/ScadaLink.CentralUI/Components/Pages/Design/Templates.razor +++ b/src/ScadaLink.CentralUI/Components/Pages/Design/Templates.razor @@ -69,14 +69,6 @@ -
- - -
@@ -117,7 +109,6 @@ private List