summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorTatsuya Niwa <tty.niwa@gmail.com>2016-01-26 23:32:35 +0900
committerTatsuya Niwa <tty.niwa@gmail.com>2016-01-30 02:28:38 +0900
commit1b804d563dbcbfec776b4083ae89b1222bafa76d (patch)
tree9a1588f1728ea1012b466ea0aa11486847cce3f8 /web
parentd8c4705bba161342bb7d2b4dcd8954203d972614 (diff)
downloadchat-1b804d563dbcbfec776b4083ae89b1222bafa76d.tar.gz
chat-1b804d563dbcbfec776b4083ae89b1222bafa76d.tar.bz2
chat-1b804d563dbcbfec776b4083ae89b1222bafa76d.zip
fix ESLint warnings.
Diffstat (limited to 'web')
-rw-r--r--web/react/components/admin_console/user_item.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/admin_console/user_item.jsx b/web/react/components/admin_console/user_item.jsx
index 41bf0c99f..511cab7ef 100644
--- a/web/react/components/admin_console/user_item.jsx
+++ b/web/react/components/admin_console/user_item.jsx
@@ -315,7 +315,7 @@ export default class UserItem extends React.Component {
<ConfirmModal
show={this.state.showDemoteModal}
title='Confirm demotion from System Admin role'
- message={[`If you demote yourself from the System Admin role and there is not another user with System Admin privileges, you'll need to re-assign a System Admin by accessing the Mattermost server through a terminal and running the following command.`,<br/>,<br/>,`./platform -assign_role -team_name="yourteam" -email="name@yourcompany.com" -role="system_admin"`,serverError]}
+ message={[`If you demote yourself from the System Admin role and there is not another user with System Admin privileges, you'll need to re-assign a System Admin by accessing the Mattermost server through a terminal and running the following command.`, React.createElement('br'), React.createElement('br'), `./platform -assign_role -team_name="yourteam" -email="name@yourcompany.com" -role="system_admin"`, serverError]}
confirm_button='Confirm Demotion'
onConfirm={this.handleDemoteSubmit}
onCancel={this.handleDemoteCancel}
@@ -378,6 +378,7 @@ export default class UserItem extends React.Component {
UserItem.propTypes = {
user: React.PropTypes.object.isRequired,
+ role: React.PropTypes.string,
refreshProfiles: React.PropTypes.func.isRequired,
doPasswordReset: React.PropTypes.func.isRequired
};