Commit 2ae001b5 authored by Jordi Mallach's avatar Jordi Mallach 🔥 Committed by Jordi Mallach

Add an option to show nicknames if set, or usernames.

parent c584d80c
......@@ -397,6 +397,7 @@ export class UsersAndTeamsSettings extends AdminSettings {
id='teammateNameDisplay'
values={[
{value: Constants.TEAMMATE_NAME_DISPLAY.SHOW_USERNAME, text: Utils.localizeMessage('admin.team.showUsername', 'Show username (default)')},
{value: Constants.TEAMMATE_NAME_DISPLAY.SHOW_NICKNAME_USERNAME, text: Utils.localizeMessage('admin.team.showNicknameOrUsername', 'Show nickname if one exists, otherwise show username')},
{value: Constants.TEAMMATE_NAME_DISPLAY.SHOW_NICKNAME_FULLNAME, text: Utils.localizeMessage('admin.team.showNickname', 'Show nickname if one exists, otherwise show first and last name')},
{value: Constants.TEAMMATE_NAME_DISPLAY.SHOW_FULLNAME, text: Utils.localizeMessage('admin.team.showFullname', 'Show first and last name')},
]}
......
......@@ -1268,6 +1268,7 @@ export const Constants = {
RHS_ROOT: 'rhsroot',
TEAMMATE_NAME_DISPLAY: {
SHOW_USERNAME: 'username',
SHOW_NICKNAME_USERNAME: 'nickname_username',
SHOW_NICKNAME_FULLNAME: 'nickname_full_name',
SHOW_FULLNAME: 'full_name',
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment