Skip to content

Commit

Permalink
Merge pull request #10311 from wordpress-mobile/issue/10298-remove-co…
Browse files Browse the repository at this point in the history
…nfirmation-dialog-on-submit

Do not show publish confirmation dialog on submit for review
  • Loading branch information
0nko authored Aug 1, 2019
2 parents cd91bc6 + b88e858 commit e1d2c87
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ class PostActionHandler(
BUTTON_MOVE_TO_DRAFT -> {
moveTrashedPostToDraft(post)
}
BUTTON_SUBMIT, BUTTON_SYNC, BUTTON_PUBLISH -> {
BUTTON_SYNC, BUTTON_PUBLISH -> {
postListDialogHelper.showPublishConfirmationDialog(post)
}
BUTTON_SUBMIT -> publishPost(post.id)
BUTTON_VIEW -> triggerPostListAction.invoke(ViewPost(site, post))
BUTTON_PREVIEW -> triggerPostListAction.invoke(PreviewPost(site, post))
BUTTON_STATS -> triggerPostListAction.invoke(ViewStats(site, post))
Expand Down

0 comments on commit e1d2c87

Please sign in to comment.