[MIRROR] Fixes invisible delete button in admin painting manager. #1198
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 Skyrat: Skyrat-SS13/Skyrat-tg#25720
Original PR: tgstation/tgstation#80423
Fixes #80422
This is the only Button.Confirm in the codebase that tries to wrap content tags around the component content instead of setting content="stuff" in the component's props.
I'm not sure what broke this, since it supposedly worked in the past. We've had recent PRs touching button code and confirm buttons.
But at the very least this fixes the issue and brings this unique Button.Confirm into the same standard all other Button.Confirms use for their inner content.
This hasn't been tested on a local server with DB/saved persistent paintings, however when I took other interfaces (such as the air alarm) and had their Button.Confirms wrap around their content instead of putting it in the props the content wasn't rendered (although icons were). So I'm positive this will see the button return to life.
Why It's Good For The Game
Admins can delete paintings again.
Changelog
🆑 Timberpoes
admin: Delete painting button is once again visible.
/:cl: