From 4a2a309d187112d4a5ad5c111baf944af5ba022d Mon Sep 17 00:00:00 2001 From: Pranav Raj Sreepuram Date: Tue, 13 Oct 2020 13:03:55 +0530 Subject: [PATCH] Use name instead of display_name in the dashboard --- app/javascript/dashboard/components/layout/Sidebar.vue | 3 +-- .../components/widgets/conversation/ConversationHeader.vue | 4 ++-- .../dashboard/routes/dashboard/settings/inbox/AddAgents.vue | 2 +- .../dashboard/routes/dashboard/settings/inbox/Settings.vue | 2 +- app/models/conversation.rb | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index fddfaab6e..43f4640e0 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -208,8 +208,7 @@ export default { accountLabels: 'labels/getLabelsOnSidebar', }), currentUserAvailableName() { - const { available_name: availableName } = this.currentUser; - return availableName; + return this.currentUser.name; }, showChangeAccountOption() { if (this.globalConfig.createNewAccountFromDashboard) { diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue index 10860a2bd..29bbc77bc 100644 --- a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue +++ b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue @@ -32,7 +32,7 @@