Remove foreaching table
parent
78fb812a74
commit
03626a75d0
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue