diff --git a/services/web/src/views/main/main.js b/services/web/src/views/main/main.js index 7193916..446126f 100644 --- a/services/web/src/views/main/main.js +++ b/services/web/src/views/main/main.js @@ -23,10 +23,12 @@ class NewChannelLightbox extends React.Component {
{ e.preventDefault(); - - this.props.onChannelCreate({name: this.state.channelName, description: this.state.channelDescription}); - this.setState({channelName: "", channelDescription: ""}); - this.props.onClose(); + + if (window.confirm("Are you sure you want to create a new channel?")) { + this.props.onChannelCreate({name: this.state.channelName, description: this.state.channelDescription}); + this.setState({channelName: "", channelDescription: ""}); + this.props.onClose(); + } }}>