feat: Use display_name instead of name of the agent (#1097)
* feat: Use display_name instead of name of the agent
This commit is contained in:
parent
f30c8943d9
commit
2b1d445003
21 changed files with 80 additions and 41 deletions
|
@ -58,12 +58,12 @@
|
|||
<div class="current-user" @click.prevent="showOptions()">
|
||||
<thumbnail
|
||||
:src="currentUser.avatar_url"
|
||||
:username="currentUser.name"
|
||||
:username="currentUserAvailableName"
|
||||
:status="currentUser.availability_status"
|
||||
/>
|
||||
<div class="current-user--data">
|
||||
<h3 class="current-user--name">
|
||||
{{ currentUser.name }}
|
||||
{{ currentUserAvailableName }}
|
||||
</h3>
|
||||
<h5 class="current-user--role">
|
||||
{{ currentRole }}
|
||||
|
@ -202,6 +202,10 @@ export default {
|
|||
uiFlags: 'agents/getUIFlags',
|
||||
accountLabels: 'labels/getLabelsOnSidebar',
|
||||
}),
|
||||
currentUserAvailableName() {
|
||||
const { available_name: availableName } = this.currentUser;
|
||||
return availableName;
|
||||
},
|
||||
showChangeAccountOption() {
|
||||
if (this.globalConfig.createNewAccountFromDashboard) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue