summaryrefslogtreecommitdiffstats
path: root/web/react/components/delete_channel_modal.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-09-25 09:16:26 -0700
committer=Corey Hulen <corey@hulen.com>2015-09-25 09:16:26 -0700
commitad346f8734f5419067c4988f118281955516a356 (patch)
tree4e1df5f440829f0240d0450fb28a314f42e85fcb /web/react/components/delete_channel_modal.jsx
parentab7b36089cbe781273fbfc15341b5276c8b3e34b (diff)
downloadchat-ad346f8734f5419067c4988f118281955516a356.tar.gz
chat-ad346f8734f5419067c4988f118281955516a356.tar.bz2
chat-ad346f8734f5419067c4988f118281955516a356.zip
fixing more redirect places
Diffstat (limited to 'web/react/components/delete_channel_modal.jsx')
-rw-r--r--web/react/components/delete_channel_modal.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/delete_channel_modal.jsx b/web/react/components/delete_channel_modal.jsx
index 4efb9cb23..44c54db72 100644
--- a/web/react/components/delete_channel_modal.jsx
+++ b/web/react/components/delete_channel_modal.jsx
@@ -4,6 +4,7 @@
const Client = require('../utils/client.jsx');
const AsyncClient = require('../utils/async_client.jsx');
const ChannelStore = require('../stores/channel_store.jsx');
+var TeamStore = require('../stores/team_store.jsx');
export default class DeleteChannelModal extends React.Component {
constructor(props) {
@@ -24,7 +25,7 @@ export default class DeleteChannelModal extends React.Component {
Client.deleteChannel(this.state.channelId,
function handleDeleteSuccess() {
AsyncClient.getChannels(true);
- window.location.href = '/';
+ window.location.href = TeamStore.getCurrentTeamUrl() + '/channels/town-square';
},
function handleDeleteError(err) {
AsyncClient.dispatchError(err, 'handleDelete');