// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. export default class ConfirmModal extends React.Component { constructor(props) { super(props); this.handleConfirm = this.handleConfirm.bind(this); this.state = {}; } handleConfirm() { $('#' + this.props.parent_id).attr('data-confirm', 'true'); $('#' + this.props.parent_id).modal('hide'); $('#' + this.props.id).modal('hide'); } render() { return (
); } } ConfirmModal.defaultProps = { parent_id: '', id: '', title: '', message: '', confirm_button: '' }; ConfirmModal.propTypes = { parent_id: React.PropTypes.string, id: React.PropTypes.string, title: React.PropTypes.string, message: React.PropTypes.string, confirm_button: React.PropTypes.string };