insight/src/Web/Insight.Web/Pages/Management/HostGroups/HostAssign.razor

38 lines
1.3 KiB
Text
Raw Normal View History

2023-11-17 17:12:41 +01:00
@inherits ComponentBase
<TableContainer T="ViewModel"
@ref="Container"
@bind-Search="Search"
Title="@Title"
Breadcrumbs="@Breadcrumbs"
Data="LoadDataAsync">
<Header>
<MudTh>
<MudTableSortLabel SortLabel="Customer" T="HostEntity">
Customer
</MudTableSortLabel>
</MudTh>
<MudTh>
<MudTableSortLabel SortLabel="Host" T="HostEntity">
Host
</MudTableSortLabel>
</MudTh>
</Header>
<RowTemplate>
<MudTd DataLabel="Customer">
<MudLink Href="@Navigation.Management.Customers.DetailsHref(context?.CustomerId)" Typo="Typo.inherit" Underline="Underline.None">
@context?.CustomerName
</MudLink>
</MudTd>
<MudTd DataLabel="Host">
<MudLink Href="@Navigation.Management.Hosts.DetailsHref(context?.HostId)" Typo="Typo.inherit" Underline="Underline.None">
@context?.HostName
</MudLink>
</MudTd>
</RowTemplate>
<ActionTemplate>
<MudMenuItem OnClick="@(()=>OnAssignAsync(context.HostId))">
Assign
</MudMenuItem>
</ActionTemplate>
</TableContainer>