diff --git a/src/SlashCommands.js b/src/SlashCommands.js index 4bf63256ac..5cfa6a3510 100644 --- a/src/SlashCommands.js +++ b/src/SlashCommands.js @@ -837,6 +837,7 @@ export const CommandMap = { } , + hasCloseX: true, }); return success(); }, diff --git a/src/components/views/dialogs/InfoDialog.js b/src/components/views/dialogs/InfoDialog.js index 1a59aaf97c..e02c70b918 100644 --- a/src/components/views/dialogs/InfoDialog.js +++ b/src/components/views/dialogs/InfoDialog.js @@ -28,12 +28,14 @@ export default React.createClass({ description: PropTypes.node, button: PropTypes.string, onFinished: PropTypes.func, + hasCloseX: PropTypes.bool, }, getDefaultProps: function() { return { title: '', description: '', + hasCloseX: false, }; }, @@ -48,7 +50,7 @@ export default React.createClass({
{ this.props.description }