forked from davidfic/estate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Template Instance update diffs and bug fixes
- Add ability from the UI to see the diff of a template instance before performing update - Fix bug with Template Item editors not saving their modified state in the UI - Re-add back session auth - it needs to be after Token auth otherwise it screws up the JS UI - Add functionality to modal to load data when it opens - Remove debug logging
- Loading branch information
Kyle Rockman
committed
Sep 17, 2017
1 parent
e7b68ae
commit 1c87f60
Showing
10 changed files
with
112 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react" | ||
import Diff from "react-diff" | ||
import Modal from "./Modal" | ||
|
||
|
||
export default class ConfirmModal extends React.Component { | ||
getResult() { | ||
return {} | ||
} | ||
render() { | ||
return( | ||
<Modal | ||
className={this.props.className} | ||
buttonText={this.props.buttonText} | ||
titleText={this.props.titleText} | ||
tooltipText={this.props.tooltipText} | ||
tooltipDelay={this.props.tooltipDelay} | ||
disabled={this.props.disabled} | ||
getResult={this.getResult.bind(this)} | ||
performLoad={this.props.load} | ||
performSubmit={this.props.callback} | ||
> | ||
<Diff inputA={this.props.diff_old || ""} inputB={this.props.diff_new || ""} type={this.props.diff_type || "chars"} /> | ||
</Modal> | ||
) | ||
} | ||
} |
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
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
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
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