fix(multivalue): MV-11/MV-13 review nits — correct CLI attribute-delete README synopsis; explicit Disabled + dead-branch cleanup in TemplateEdit list editor
This commit is contained in:
@@ -214,13 +214,12 @@ scadabridge --url <url> template attribute update --id <int> --name <string> --d
|
||||
Remove an attribute from a template.
|
||||
|
||||
```sh
|
||||
scadabridge --url <url> template attribute delete --template-id <int> --name <string>
|
||||
scadabridge --url <url> template attribute delete --id <int>
|
||||
```
|
||||
|
||||
| Option | Required | Description |
|
||||
|--------|----------|-------------|
|
||||
| `--template-id` | yes | Template ID |
|
||||
| `--name` | yes | Attribute name to delete |
|
||||
| `--id` | yes | Attribute ID |
|
||||
|
||||
#### `template alarm add`
|
||||
|
||||
|
||||
@@ -572,9 +572,11 @@
|
||||
@if (_attrDataType == DataType.List)
|
||||
{
|
||||
<div class="col-12">
|
||||
@* List VALUE stays editable when editing; only DataType/ElementDataType are server-fixed (ShowElementType hides the type select on edit). *@
|
||||
<AttributeListEditor @bind-ElementDataType="_attrElementDataType"
|
||||
@bind-Rows="_attrListRows"
|
||||
ShowElementType="@(!editing)" />
|
||||
ShowElementType="@(!editing)"
|
||||
Disabled="false" />
|
||||
</div>
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user