[MIRROR] Makes attempting to refresh the logs not just throw a runtime error #2751
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mirrored on Nova: NovaSector/NovaSector#1814
Original PR: tgstation/tgstation#82432
About The Pull Request
Really all this seems to be is a mismatch between the tgui and dm side of the menu.
https://github.com/tgstation/tgstation/blob/3c71b14df0957749f31fb2e678130daf4cfb3250/tgui/packages/tgui/interfaces/LogViewer.tsx#L71
https://github.com/tgstation/tgstation/blob/3c71b14df0957749f31fb2e678130daf4cfb3250/code/modules/logging/log_holder.dm#L110-L113
Making these line up by renaming
re-render
torefresh
seems to make it work just fine, and not just throw an error.Why It's Good For The Game
Life tends to be better when refreshing to see new runtimes doesn't just add its own lovely little runtimes.
And then not show them til you re-open the window cause it doesn't refresh.
Changelog
🆑 00-Steven
admin: Refresh button on the View Round Logs menu actually works, instead of just adding a runtime to the logs (and not updating them).
/:cl: