Remove foreaching table

save-path-regex
Pat Hartl 2023-11-04 20:12:11 -05:00
parent 78fb812a74
commit 03626a75d0
1 changed files with 21 additions and 21 deletions

View File

@ -9,8 +9,6 @@
<Empty />
}
@foreach (var httpPath in Values)
{
<SpaceItem>
<Table TItem="ServerHttpPath" DataSource="@Values" HidePagination="true" Responsive>
<PropertyColumn Property="p => p.LocalPath" Title="Local Path">
@ -21,11 +19,14 @@
</PropertyColumn>
<ActionColumn>
<Space Style="display: flex; justify-content: end">
@if (context != null && context.Id != Guid.Empty)
{
<SpaceItem>
<a class="ant-btn ant-btn-text ant-btn-icon-only" href="@NavigationManager.ToAbsoluteUri($"Server/{ServerId}/{context.Path.TrimStart('/')}")" target="_blank">
<Icon Type="@IconType.Outline.Eye" />
</a>
</SpaceItem>
}
<SpaceItem>
<Button OnClick="() => Remove(context)" Type="@ButtonType.Text" Danger Icon="@IconType.Outline.Close" />
</SpaceItem>
@ -33,7 +34,6 @@
</ActionColumn>
</Table>
</SpaceItem>
}
<SpaceItem>
<GridRow Justify="end">