Skip to content

Commit

Permalink
Minor UI improvements for deploy modal (ToolJet#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Navaneeth-pk authored Jun 28, 2021
1 parent 3980448 commit 73c36ef
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions frontend/src/Editor/SaveAndPreview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,20 @@ class SaveAndPreview extends React.Component {

return (
<div>
{!showModal && (
<button className="btn btn-primary btn-sm" onClick={() => this.setState({ showModal: true })}>
Deploy
</button>
)}

<Modal show={this.state.showModal} size="md" backdrop="static" centered={true} keyboard={true}>
<button className="btn btn-primary btn-sm" onClick={() => this.setState({ showModal: true })}>
Deploy
</button>

<Modal
show={this.state.showModal}
size="md"
backdrop="static"
centered={true}
keyboard={true}
enforceFocus={false}
animation={false}
onEscapeKeyDown={() => this.hideModal()}
>
<Modal.Header>
<Modal.Title>Versions and deployments</Modal.Title>
<div>
Expand Down

0 comments on commit 73c36ef

Please sign in to comment.