Skip to content

Commit

Permalink
Editor: chained modal works - ModalForm in same file as Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Nov 20, 2018
1 parent 2d32cb4 commit 9b2ed66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/editor/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import Modal from 'react-bootstrap/lib/Modal'

class ModalForm extends Component {
constructor(props) {
console.debug(`DEBUG: I am in ModalForm constructor for ${props.resourceTemplateId}`)
console.error(`DEBUG: I am in ModalForm constructor for ${props.resourceTemplateId}`)

super(props)
this.handleShowChained = this.handleShowChained.bind(this)
Expand Down Expand Up @@ -112,9 +112,9 @@ class ModalForm extends Component {
data-target={`#modal-${chainedRtId}`}>Modal for {chainedRtId}</button>
<ModalForm
resourceTemplateId = {chainedRtId}
chainedShow={this.state.chainedShow}
handleChainedClose={this.handleChainedClose}
handleChainedSave={this.handleChainedSave}
modalShow={this.state.chainedShow}
handleModalClose={this.handleChainedClose}
handleModalSave={this.handleChainedSave}
/>
<ResourceTemplate resourceTemplateId = {myResourceTemplateId} />
</Modal.Body>
Expand Down

0 comments on commit 9b2ed66

Please sign in to comment.