fix(dashboard): use display name for member/group embeds
This commit is contained in:
parent
989a8b4453
commit
f90ffdaff2
@ -105,7 +105,7 @@ public class GroupControllerV2: PKControllerBase
|
|||||||
throw Errors.GroupNotFound;
|
throw Errors.GroupNotFound;
|
||||||
var system = await _repo.GetSystem(group.System);
|
var system = await _repo.GetSystem(group.System);
|
||||||
|
|
||||||
var name = group.NameFor(LookupContext.ByNonOwner);
|
var name = group.DisplayName ?? group.Name;
|
||||||
if (system.Name != null)
|
if (system.Name != null)
|
||||||
name += $" ({system.Name})";
|
name += $" ({system.Name})";
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ public class MemberControllerV2: PKControllerBase
|
|||||||
throw Errors.MemberNotFound;
|
throw Errors.MemberNotFound;
|
||||||
var system = await _repo.GetSystem(member.System);
|
var system = await _repo.GetSystem(member.System);
|
||||||
|
|
||||||
var name = member.NameFor(LookupContext.ByNonOwner);
|
var name = member.DisplayName ?? member.Name;
|
||||||
if (system.Name != null)
|
if (system.Name != null)
|
||||||
name += $" ({system.Name})";
|
name += $" ({system.Name})";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user