-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add build in progress modal when trying to exit (#3695)
* Changed store to stop the isBuilding state as well * Create Build In Progress modal * Use blocker to stop if its building as well
- Loading branch information
1 parent
46a66a5
commit a4dc538
Showing
3 changed files
with
80 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import ConfirmationModal from "../confirmationModal"; | ||
|
||
export function BuildInProgressModal({ | ||
onStopBuild, | ||
onCancel, | ||
}: { | ||
onStopBuild: () => void; | ||
onCancel: () => void; | ||
}): JSX.Element { | ||
return ( | ||
<ConfirmationModal | ||
open={true} | ||
onClose={onCancel} | ||
title="Build in Progress" | ||
cancelText="Cancel" | ||
confirmationText="Stop Build" | ||
onConfirm={onStopBuild} | ||
onCancel={onCancel} | ||
size="x-small" | ||
> | ||
<ConfirmationModal.Content> | ||
The flow is currently building. Do you want to stop the build and exit? | ||
</ConfirmationModal.Content> | ||
</ConfirmationModal> | ||
); | ||
} |
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
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