summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorTatsuya Niwa <tty.niwa@gmail.com>2016-01-25 00:39:40 +0900
committerTatsuya Niwa <tty.niwa@gmail.com>2016-01-30 02:28:38 +0900
commitfecb5870185d36c0649bb2ec343796fc00a4344f (patch)
tree40b378086e96d895b18aa3b1dbf3d8678286710e /web
parent3d5bf17349fb139f627bc4916d6f704ad159d5a6 (diff)
downloadchat-fecb5870185d36c0649bb2ec343796fc00a4344f.tar.gz
chat-fecb5870185d36c0649bb2ec343796fc00a4344f.tar.bz2
chat-fecb5870185d36c0649bb2ec343796fc00a4344f.zip
fix ESLint warnings.
Diffstat (limited to 'web')
-rw-r--r--web/react/components/admin_console/demote_own_role_modal.jsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/react/components/admin_console/demote_own_role_modal.jsx b/web/react/components/admin_console/demote_own_role_modal.jsx
index 63d4dca5c..18747e33e 100644
--- a/web/react/components/admin_console/demote_own_role_modal.jsx
+++ b/web/react/components/admin_console/demote_own_role_modal.jsx
@@ -1,10 +1,8 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-import * as AsyncClient from '../../utils/async_client.jsx';
import * as Client from '../../utils/client.jsx';
const Modal = ReactBootstrap.Modal;
-import * as Utils from '../../utils/utils.jsx';
export default class DemoteOwnRoleModal extends React.Component {
constructor(props) {
@@ -23,7 +21,6 @@ export default class DemoteOwnRoleModal extends React.Component {
user_id: this.props.user.id,
new_roles: this.props.role
};
- console.log(JSON.stringify(data));
Client.updateRoles(data,
() => {
@@ -45,7 +42,7 @@ export default class DemoteOwnRoleModal extends React.Component {
let serverError = null;
if (this.state.serverError) {
- serverError = <div className="has-error"><label className="has-error control-label">{this.state.serverError}</label></div>
+ serverError = <div className='has-error'><label className='has-error control-label'>{this.state.serverError}</label></div>
}
return (