Skip to content

Commit 428050a

Browse files
committed
Don't use short names in drop downs. They don't match filter and don't have obvious meaning.
1 parent 5b028b2 commit 428050a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Dates should be in`YYYY-MM-DD` format and versions are in [semantic versioning](
88
### Fixed
99

1010
- Improved error messages when data isn't visible to a user.
11+
- Don't use short names in drop downs. They don't match filter and don't have obvious meaning.
1112

1213
### Maintenance
1314

src/lib/RoleLink.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,10 @@
3737
{/snippet}
3838

3939
{#if role === undefined}<Oops inline text="Unknown role" />{:else}<Link
40-
title={role !== null && role.short.length > 0 ? role.title : undefined}
40+
title={role !== null ? role.title : undefined}
4141
to={role
4242
? `/org/${Organization.getPath(org)}/role/${path}`
4343
: `/org/${Organization.getPath(org)}/roles`}
4444
kind="role"
45-
>{role
46-
? role.short.length > 0
47-
? role.short[0].replace(/([A-Z]+)/g, ' $1').trim()
48-
: role.title
49-
: 'roles'}{#snippet action()}{@render children?.()}{/snippet}</Link
45+
>{role ? role.title : 'roles'}{#snippet action()}{@render children?.()}{/snippet}</Link
5046
>{/if}

0 commit comments

Comments
 (0)