fix(adminui): CSV import grid shows the raw name/group of an invalid row (#847)
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<thead class="sticky-top bg-body">
|
||||
<tr>
|
||||
<th style="width:2.5rem"></th>
|
||||
<th>Row</th>
|
||||
<th title="Data-row number in the file (the header is row 0)">Row</th>
|
||||
<th>Name</th>
|
||||
<th>Group</th>
|
||||
<th>Verdict</th>
|
||||
@@ -89,7 +89,16 @@
|
||||
<tr @key="row.RowNumber" class="@(row.Ok ? "" : "table-danger")">
|
||||
<td>@(row.Ok ? "✓" : "✕")</td>
|
||||
<td class="mono">@row.RowNumber</td>
|
||||
<td class="mono">@row.Name</td>
|
||||
<td class="mono">
|
||||
@if (row.Name.Length == 0)
|
||||
{
|
||||
<span class="text-muted fst-italic">(blank name)</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
@row.Name
|
||||
}
|
||||
</td>
|
||||
<td class="mono small">@(row.EffectiveGroupPath.Length == 0 ? "(device root)" : row.EffectiveGroupPath)</td>
|
||||
<td>
|
||||
@if (row.Ok)
|
||||
|
||||
Reference in New Issue
Block a user