refactor: profile menu role
This commit is contained in:
parent
eda7dd84f1
commit
5adf80142a
1 changed files with 6 additions and 1 deletions
|
|
@ -146,7 +146,12 @@ onMounted(async () => {
|
|||
role !== 'uma_authorization',
|
||||
)
|
||||
.map((role) =>
|
||||
role.replace(/_/g, ' ').replace(/^./, (match) => match.toUpperCase()),
|
||||
role
|
||||
.replace(/_/g, ' ')
|
||||
.toLowerCase()
|
||||
.split(' ')
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(' '),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue