Disable admin logs next button when there are no more logs (#9277)

This commit is contained in:
DrSmugleaf
2022-06-29 10:38:24 +02:00
committed by GitHub
parent f1bc15b6fb
commit 2a59e1b7fd
3 changed files with 15 additions and 7 deletions

View File

@@ -125,11 +125,17 @@ public sealed class AdminLogsEui : BaseEui
switch (msg)
{
case NewLogs {Replace: true} newLogs:
LogsControl.SetLogs(newLogs.Logs);
break;
case NewLogs {Replace: false} newLogs:
LogsControl.AddLogs(newLogs.Logs);
case NewLogs newLogs:
if (newLogs.Replace)
{
LogsControl.SetLogs(newLogs.Logs);
}
else
{
LogsControl.AddLogs(newLogs.Logs);
}
LogsControl.NextButton.Disabled = !newLogs.HasNext;
break;
}
}