testing remote stuff

This commit is contained in:
kkb 2023-11-17 17:12:41 +01:00
parent 1e05d4576d
commit 3c9ccaafeb
374 changed files with 10526 additions and 2037 deletions

View file

@ -7,12 +7,12 @@
</MudText>
</MudDrawerHeader>
<MudStack Class="px-6">
@if (Agent is not null)
@if (_model is not null)
{
@if (Agent.Hosts is not null && Agent.Hosts.Any())
@if (_model.Hosts is not null && _model.Hosts.Any())
{
<MudStack Justify="Justify.Center">
<MudButton Href="@Navigation.Management.Hosts.DetailsHref(Agent?.Hosts?.FirstOrDefault()?.Id?.ToString())" Variant="Variant.Filled" Size="Size.Large" Color="Color.Info" DisableElevation="true">
<MudButton Href="@Navigation.Management.Hosts.DetailsHref(_model?.Hosts?.FirstOrDefault()?.Id)" Variant="Variant.Filled" Size="Size.Large" Color="Color.Info" DisableElevation="true">
Select
</MudButton>
<MudButton OnClick="UnassignAsync" Variant="Variant.Filled" DisableElevation Size="Size.Large" Color="Color.Error">
@ -26,7 +26,7 @@
else
{
<MudStack Justify="Justify.Center">
<MudButton Href="@Navigation.Management.Agents.HostAssingHref(Agent.Id?.ToString())" Variant="Variant.Filled" DisableElevation Size="Size.Large" Color="Color.Error">
<MudButton Href="@Navigation.Management.Agents.HostAssingHref(_model.Id)" Variant="Variant.Filled" DisableElevation Size="Size.Large" Color="Color.Error">
Assign
</MudButton>
<MudButton OnClick="()=>_visible = false" Variant="Variant.Outlined" DisableElevation Size="Size.Large" Color="Color.Surface">
@ -40,10 +40,4 @@
@code {
private bool _visible;
public void Toggle()
{
_visible = !_visible;
StateHasChanged();
}
}