Disable admin logs next button when there are no more logs (#9277)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user