Can anyone help me fix this button?

This button basically lost its spring and cap, could anyone help this work again? Tbh it could probably get a 3D printed cap and a new spring and be ok.

Sorry not enough context, it’s on the long arm quilting machine

Parts are ordered. Should be here this weekend. If I have time I’ll put it all back together on Sunday, otherwise sometime next week.

Wooop thank-you!!!