Had issue with the non-orignal dock and couldn't find a solution until I found this app. So glad I found it.
Dock Clock Plus (Night/Desk) App resolves this. I was here looking for the same thing and finally found the app that resolves this. This has an option to enable dock (app) whilst charging...