Don't dismiss immediately when clicking publish
Don't dismiss immediately when clicking publish

This was broken in #2595 when we changed the type of the push/publish button from normal to 'submit'. Submit buttons automatically dismiss the dialog so we need to cancel that even before we start doing things with state

desktop/desktop,shiftkey/desktop,gengjiawen/desktop,kactus-io/kactus,artivilla/desktop,desktop/desktop,say25/desktop,desktop/desktop,artivilla/desktop,kactus-io/kactus,desktop/desktop,kactus-io/kactus,artivilla/desktop,kactus-io/kactus,say25/desktop,j-f1/forked-desktop,say25/desktop,j-f1/forked-desktop,gengjiawen/desktop,shiftkey/desktop,say25/desktop,j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,shiftkey/desktop,artivilla/desktop,gengjiawen/desktop,gengjiawen/desktop