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; }