From 100540b1533b2cd9b4dd3f3dcfc7e868887c7db2 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 16 Jun 2026 16:27:44 -0400 Subject: [PATCH] =?UTF-8?q?fix(multivalue):=20MV-11/MV-13=20review=20nits?= =?UTF-8?q?=20=E2=80=94=20correct=20CLI=20attribute-delete=20README=20syno?= =?UTF-8?q?psis;=20explicit=20Disabled=20+=20dead-branch=20cleanup=20in=20?= =?UTF-8?q?TemplateEdit=20list=20editor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ZB.MOM.WW.ScadaBridge.CLI/README.md | 5 ++--- .../Components/Pages/Design/TemplateEdit.razor | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ZB.MOM.WW.ScadaBridge.CLI/README.md b/src/ZB.MOM.WW.ScadaBridge.CLI/README.md index ce9c62a9..e98ea94e 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CLI/README.md +++ b/src/ZB.MOM.WW.ScadaBridge.CLI/README.md @@ -214,13 +214,12 @@ scadabridge --url template attribute update --id --name --d Remove an attribute from a template. ```sh -scadabridge --url template attribute delete --template-id --name +scadabridge --url template attribute delete --id ``` | Option | Required | Description | |--------|----------|-------------| -| `--template-id` | yes | Template ID | -| `--name` | yes | Attribute name to delete | +| `--id` | yes | Attribute ID | #### `template alarm add` diff --git a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateEdit.razor b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateEdit.razor index 6897e66e..24cea2d7 100644 --- a/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateEdit.razor +++ b/src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateEdit.razor @@ -572,9 +572,11 @@ @if (_attrDataType == DataType.List) {
+ @* List VALUE stays editable when editing; only DataType/ElementDataType are server-fixed (ShowElementType hides the type select on edit). *@ + ShowElementType="@(!editing)" + Disabled="false" />
} else @@ -1591,7 +1593,7 @@ if (dt == DataType.List) { _attrValue = null; - if (_attrListRows.Count == 0) _attrListRows = new(); + _attrListRows = new(); if (!AttributeValueCodec.IsValidElementType(_attrElementDataType)) _attrElementDataType = DataType.String; }