Browse Source

Basic clear logs button (#610)

* Basic clear button
pull/623/head
Glenn Condron 6 years ago
committed by GitHub
parent
commit
9b71a45ac6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/Microsoft.Tye.Hosting/Dashboard/Pages/Logs.razor

8
src/Microsoft.Tye.Hosting/Dashboard/Pages/Logs.razor

@ -10,6 +10,9 @@
}
else
{
<div style="padding:10px">
<button type="button" class="btn btn-primary" @onclick=ClearLogs>Clear Log</button>
</div>
<div style="overflow-y: scroll;position: absolute;height: 84%; width:75%; color:white;background-color:black;padding:10px">
@foreach (var log in ApplicationLogs)
{
@ -48,6 +51,11 @@ else
base.OnInitialized();
}
private void ClearLogs()
{
ApplicationLogs?.Clear();
}
void IDisposable.Dispose()
{
_subscription?.Dispose();

Loading…
Cancel
Save