Remove foreaching table
parent
78fb812a74
commit
03626a75d0
|
@ -9,31 +9,31 @@
|
||||||
<Empty />
|
<Empty />
|
||||||
}
|
}
|
||||||
|
|
||||||
@foreach (var httpPath in Values)
|
<SpaceItem>
|
||||||
{
|
<Table TItem="ServerHttpPath" DataSource="@Values" HidePagination="true" Responsive>
|
||||||
<SpaceItem>
|
<PropertyColumn Property="p => p.LocalPath" Title="Local Path">
|
||||||
<Table TItem="ServerHttpPath" DataSource="@Values" HidePagination="true" Responsive>
|
<FilePicker @bind-Value="context.LocalPath" AllowDirectories Title="Select Local Path" Root="@WorkingDirectory" />
|
||||||
<PropertyColumn Property="p => p.LocalPath" Title="Local Path">
|
</PropertyColumn>
|
||||||
<FilePicker @bind-Value="context.LocalPath" AllowDirectories Title="Select Local Path" Root="@WorkingDirectory" />
|
<PropertyColumn Property="p => p.Path">
|
||||||
</PropertyColumn>
|
<Input Type="text" @bind-Value="context.Path" />
|
||||||
<PropertyColumn Property="p => p.Path">
|
</PropertyColumn>
|
||||||
<Input Type="text" @bind-Value="context.Path" />
|
<ActionColumn>
|
||||||
</PropertyColumn>
|
<Space Style="display: flex; justify-content: end">
|
||||||
<ActionColumn>
|
@if (context != null && context.Id != Guid.Empty)
|
||||||
<Space Style="display: flex; justify-content: end">
|
{
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
<a class="ant-btn ant-btn-text ant-btn-icon-only" href="@NavigationManager.ToAbsoluteUri($"Server/{ServerId}/{context.Path.TrimStart('/')}")" target="_blank">
|
<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" />
|
<Icon Type="@IconType.Outline.Eye" />
|
||||||
</a>
|
</a>
|
||||||
</SpaceItem>
|
</SpaceItem>
|
||||||
<SpaceItem>
|
}
|
||||||
<Button OnClick="() => Remove(context)" Type="@ButtonType.Text" Danger Icon="@IconType.Outline.Close" />
|
<SpaceItem>
|
||||||
</SpaceItem>
|
<Button OnClick="() => Remove(context)" Type="@ButtonType.Text" Danger Icon="@IconType.Outline.Close" />
|
||||||
</Space>
|
</SpaceItem>
|
||||||
</ActionColumn>
|
</Space>
|
||||||
</Table>
|
</ActionColumn>
|
||||||
</SpaceItem>
|
</Table>
|
||||||
}
|
</SpaceItem>
|
||||||
|
|
||||||
<SpaceItem>
|
<SpaceItem>
|
||||||
<GridRow Justify="end">
|
<GridRow Justify="end">
|
||||||
|
|
Loading…
Reference in New Issue