Use name instead of display_name in the dashboard

This commit is contained in:
Pranav Raj Sreepuram 2020-10-13 13:03:55 +05:30
parent 2c324d9421
commit 4a2a309d18
5 changed files with 6 additions and 7 deletions

View file

@ -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) {

View file

@ -32,7 +32,7 @@
<multiselect
v-model="currentChat.meta.assignee"
:options="agentList"
label="available_name"
label="name"
:allow-empty="true"
deselect-label="Remove"
placeholder="Select Agent"
@ -97,7 +97,7 @@ export default {
return [
{
confirmed: true,
available_name: 'None',
name: 'None',
id: 0,
role: 'agent',
account_id: 0,

View file

@ -15,7 +15,7 @@
v-model="selectedAgents"
:options="agentList"
track-by="id"
label="available_name"
label="name"
:multiple="true"
:close-on-select="false"
:clear-on-select="false"

View file

@ -180,7 +180,7 @@
v-model="selectedAgents"
:options="agentList"
track-by="id"
label="available_name"
label="name"
:multiple="true"
:close-on-select="false"
:clear-on-select="false"

View file

@ -157,7 +157,7 @@ class Conversation < ApplicationRecord
def create_activity
return unless Current.user
user_name = Current.user&.available_name
user_name = Current.user.name
create_status_change_message(user_name) if saved_change_to_status?
create_assignee_change(user_name) if saved_change_to_assignee_id?