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.
|
Remove an attribute from a template.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
scadabridge --url <url> template attribute delete --template-id <int> --name <string>
|
scadabridge --url <url> template attribute delete --id <int>
|
||||||
```
|
```
|
||||||
|
|
||||||
| Option | Required | Description |
|
| Option | Required | Description |
|
||||||
|--------|----------|-------------|
|
|--------|----------|-------------|
|
||||||
| `--template-id` | yes | Template ID |
|
| `--id` | yes | Attribute ID |
|
||||||
| `--name` | yes | Attribute name to delete |
|
|
||||||
|
|
||||||
#### `template alarm add`
|
#### `template alarm add`
|
||||||
|
|
||||||
|
|||||||
@@ -572,9 +572,11 @@
|
|||||||
@if (_attrDataType == DataType.List)
|
@if (_attrDataType == DataType.List)
|
||||||
{
|
{
|
||||||
<div class="col-12">
|
<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"
|
<AttributeListEditor @bind-ElementDataType="_attrElementDataType"
|
||||||
@bind-Rows="_attrListRows"
|
@bind-Rows="_attrListRows"
|
||||||
ShowElementType="@(!editing)" />
|
ShowElementType="@(!editing)"
|
||||||
|
Disabled="false" />
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -1591,7 +1593,7 @@
|
|||||||
if (dt == DataType.List)
|
if (dt == DataType.List)
|
||||||
{
|
{
|
||||||
_attrValue = null;
|
_attrValue = null;
|
||||||
if (_attrListRows.Count == 0) _attrListRows = new();
|
_attrListRows = new();
|
||||||
if (!AttributeValueCodec.IsValidElementType(_attrElementDataType))
|
if (!AttributeValueCodec.IsValidElementType(_attrElementDataType))
|
||||||
_attrElementDataType = DataType.String;
|
_attrElementDataType = DataType.String;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user