Correct icon states when toggling details pane

https://www.openproject.org/work_packages/15321