-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split push operation into separate handler in SubmitButton
Summary: Previously, we reused the OperationDisabledButton we use for Commit & Submit for Commit & Push... (and variants). This doesn't actually match the model that will be effective for branching PR pushes. Namely, we actually need the commit operation to go through before the push, so our UI can show the commits that will be pushed. OperationDisabledButton requires all async actions to take place before it actually queues the commands. Instead, let's use a regular old Button and queue up the Commit operation before we even pop open the modal. This will let us get show the commit stack more easily. This also prevents weirdness where the commit message would be discarded if you dismiss the push modal. Reviewed By: muirdm Differential Revision: D62659442 fbshipit-source-id: f3f2dc147ac9e93dd11732d24493ddd9bc94dccb
- Loading branch information
1 parent
87e674a
commit 875fa78
Showing
1 changed file
with
146 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters