re-adds list of components for admins to remove (#82461)

## About The Pull Request

The list of components on a mob when admins try to remove one didn't
actually show them, now it does.

![image](https://github.com/tgstation/tgstation/assets/53777086/a6102c3a-df30-4e9c-b7fd-29a4d8ddaa89)

## Why It's Good For The Game

Messing with components/elements on mobs are such a pain, in this case
was broken entirely.

![admin-toolings](https://github.com/tgstation/tgstation/assets/53777086/3d190c66-34e4-4424-824b-37f95e88b003)

## Changelog

🆑
admin: Removing components button now lists components to remove
/🆑
This commit is contained in:
John Willard
2024-04-05 23:45:09 +00:00
committed by GitHub
parent 6e36ed9840
commit 17deef69d9

View File

@@ -98,9 +98,7 @@
if(!check_rights(NONE))
return
var/mass_remove = href_list[VV_HK_MASS_REMOVECOMPONENT]
var/list/components = list()
for(var/datum/component/component in target.GetComponents(/datum/component))
components += component.type
var/list/components = target._datum_components.Copy()
var/list/names = list()
names += "---Components---"
if(length(components))