mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 23:42:44 +08:00
Making user action item_type 'users' for consistency.
This commit is contained in:
@@ -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'});
|
||||
}
|
||||
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user