summaryrefslogtreecommitdiffstats
path: root/webapp/components/rename_channel_modal.jsx
diff options
context:
space:
mode:
authorCarlos Tadeu Panato Junior <ctadeu@gmail.com>2016-12-01 15:04:33 +0100
committerJoram Wilander <jwawilander@gmail.com>2016-12-01 09:04:33 -0500
commit8c18da21f3e51421a0dc6fbd4be1fa1e838dd482 (patch)
tree8f6ed00558fbf63dedb8d1effa1f52c4a3c3e97d /webapp/components/rename_channel_modal.jsx
parentf013d91b89c03e49e66d0726cb66be886bc80c01 (diff)
downloadchat-8c18da21f3e51421a0dc6fbd4be1fa1e838dd482.tar.gz
chat-8c18da21f3e51421a0dc6fbd4be1fa1e838dd482.tar.bz2
chat-8c18da21f3e51421a0dc6fbd4be1fa1e838dd482.zip
Move instances of Client.updateChannel() in components to an action (#4643)
* Move instances of Client.updateChannel() in components to an action * update per code review
Diffstat (limited to 'webapp/components/rename_channel_modal.jsx')
-rw-r--r--webapp/components/rename_channel_modal.jsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/webapp/components/rename_channel_modal.jsx b/webapp/components/rename_channel_modal.jsx
index bb6d4f26d..3eaab834f 100644
--- a/webapp/components/rename_channel_modal.jsx
+++ b/webapp/components/rename_channel_modal.jsx
@@ -3,11 +3,10 @@
import ReactDOM from 'react-dom';
import * as Utils from 'utils/utils.jsx';
-import Client from 'client/web_client.jsx';
-import * as AsyncClient from 'utils/async_client.jsx';
import Constants from 'utils/constants.jsx';
import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl';
+import {updateChannel} from 'actions/channel_actions.jsx';
import {Modal} from 'react-bootstrap';
@@ -161,10 +160,8 @@ export class RenameChannelModal extends React.Component {
return;
}
- Client.updateChannel(
- channel,
+ updateChannel(channel,
() => {
- AsyncClient.getChannel(channel.id);
this.handleHide();
},
(err) => {