Mmm.. from your photos, the assembly still looks good, but needs a new cover/cap. You might be able to find the part number for the connector and get a new one -- and use only the cover cap, rather than desoldering/resoldering etc..

Hot-melt glue, liberally applied, might also do just fine there. Give it a try.

Cheers