Making user action item_type 'users' for consistency.

This commit is contained in:
David Jay
2017-01-10 13:59:36 -05:00
parent bf04034085
commit d9147da8fc
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ class FlagButton extends Component {
case 'comments':
item_id = id;
break;
case 'user':
case 'users':
item_id = author_id;
break;
}
@@ -72,7 +72,7 @@ class FlagButton extends Component {
onPopupOptionClick = (sets) => (e) => {
// If flagging a user, indicate that this is referencing the username rather than the bio
if(sets === 'itemType' && e.target.value === 'user') {
if(sets === 'itemType' && e.target.value === 'users') {
this.setState({field: 'username'});
}
+1 -1
View File
@@ -10,7 +10,7 @@ const getPopupMenu = [
return {
header: lang.t('step-1-header'),
options: [
{val: 'user', text: lang.t('flag-username')},
{val: 'users', text: lang.t('flag-username')},
{val: 'comments', text: lang.t('flag-comment')}
],
button: lang.t('continue'),