From ac85a9acb527d907fe4f49f842d8a257cffd8f02 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 10 Aug 2026 17:59:11 -0400 Subject: [PATCH] =?UTF-8?q?ui(scripts):=20inline=20source=20expander=20?= =?UTF-8?q?=E2=86=92=20dialog=20+=20stacked=20row=20identity=20(=C2=A71d?= =?UTF-8?q?=20Task=202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Pages/Scripts.razor | 88 +++++++++++++++---- 1 file changed, 71 insertions(+), 17 deletions(-) diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Scripts.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Scripts.razor index 56c26050..54130124 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Scripts.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Scripts.razor @@ -25,30 +25,72 @@ else } else { - @foreach (var s in _rows) - { -
- - @s.ScriptId - · @s.Name - · @s.Language - hash=@DisplayText.Abbreviate(s.SourceHash, 12) - -
-
- Edit -
-
@s.SourceCode
-
-
- } + + + + + + + + + @foreach (var s in _rows) + { + + + + + } + +
Script
+
+ @(string.IsNullOrWhiteSpace(s.Name) ? s.ScriptId : s.Name) + @s.Language +
+
+ @s.ScriptId · hash=@DisplayText.Abbreviate(s.SourceHash, 12) +
+
+
+ + Edit +
+
} } +@if (FindSourceScript() is { } src) +{ + + +} + @code { private List