Skip to content

Commit

Permalink
Fix wake 404
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-jung committed Jan 10, 2020
1 parent e626a0c commit 9157761
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions WoL/Pages/Wake.razor
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
}
}

private string Danger
{
set
{
AlertClass = "alert-danger";
Alert = value;
}
}

protected override async Task OnParametersSetAsync()
{
await StartBackgroundWork();
Expand All @@ -136,6 +145,11 @@
private async Task StartBackgroundWork()
{
host = await HostService.Find(Id);
if (host == null)
{
Danger = "This host does not exist.";
return;
}
model = new HostViewModel(host);
AlertSpinner = true;
Info = "Sending wake-up packet...";
Expand Down

0 comments on commit 9157761

Please sign in to comment.