From e9fa9e5eff7a54b9a8772f8a18a5130255c0a4e3 Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Fri, 11 Jun 2021 15:38:46 +0530 Subject: [PATCH] feat: Add assign to me button next to assign agents. (#2414) --- .../i18n/locale/en/conversation.json | 1 + .../dashboard/conversation/ContactPanel.vue | 58 ++++++++++++++++++- 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/conversation.json b/app/javascript/dashboard/i18n/locale/en/conversation.json index b13404e91..f49b19ad5 100644 --- a/app/javascript/dashboard/i18n/locale/en/conversation.json +++ b/app/javascript/dashboard/i18n/locale/en/conversation.json @@ -110,6 +110,7 @@ "CONVERSATION_SIDEBAR": { "DETAILS_TITLE": "Conversations Details", "ASSIGNEE_LABEL": "Assigned Agent", + "SELF_ASSIGN": "Assign to me", "TEAM_LABEL": "Assigned Team", "SELECT": { "PLACEHOLDER": "None" diff --git a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue index ef2cd42cd..9f6ba39f8 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/ContactPanel.vue @@ -9,9 +9,20 @@ {{ $t('CONVERSATION_SIDEBAR.DETAILS_TITLE') }}
- +
+ + + {{ $t('CONVERSATION_SIDEBAR.SELF_ASSIGN') }} + +
@@ -375,4 +419,12 @@ export default { flex-shrink: 0; } } +.self-assign { + display: flex; + justify-content: space-between; + + .button-content { + margin-bottom: var(--space-small); + } +}