Skip to content

Commit

Permalink
fix: add close button in error dialog when creating rule with empty p… (
Browse files Browse the repository at this point in the history
  • Loading branch information
venconi91 authored and kalinkrustev committed Jun 15, 2017
1 parent 05c75a3 commit caedd82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ut-rule",
"version": "9.7.4-duplicated-priority-error.3",
"version": "9.7.5-errors-dialog-buttons.0",
"dependencies": {
"classnames": "2.2.5",
"joi": "10.0.6",
Expand Down
4 changes: 3 additions & 1 deletion ui/react/components/Dialog/index.js
Expand Up @@ -527,7 +527,9 @@ export default React.createClass({
autoScrollBodyContent
contentStyle={style}
onRequestClose={this.closeFormErrorDialog}
actions={[]}
actions={[
<button onClick={this.closeFormErrorDialog} className='button btn btn-primary'>Cancel</button>
]}
>
<div className={style.content}>
{this.state.form.errors && this.state.form.errors.map((error, i) => <div key={i}>{error}</div>)}
Expand Down

0 comments on commit caedd82

Please sign in to comment.