Implement action in preview for draft mode
Created by: eseliger
This is one of the remaining pieces of https://github.com/sourcegraph/sourcegraph/issues/7998. We now distinguish the published flag and display a proper action for publish as draft on the preview page.