chore: Move conversation header above sidebar (#1835)

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Nithin David Thomas 2021-03-02 22:44:04 +05:30 committed by GitHub
parent 2120734f67
commit 5f250e5b3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 150 additions and 78 deletions

View file

@ -1,6 +1,6 @@
<template>
<div class="conv-header">
<div class="user" :class="{ hide: isContactPanelOpen }">
<div class="user">
<Thumbnail
:src="currentContact.thumbnail"
size="40px"
@ -9,7 +9,7 @@
:status="currentContact.availability_status"
/>
<div class="user--profile__meta">
<h3 v-if="!isContactPanelOpen" class="user--name text-truncate">
<h3 class="user--name text-truncate">
{{ currentContact.name }}
</h3>
<button
@ -17,9 +17,11 @@
@click="$emit('contact-panel-toggle')"
>
{{
`${$t('CONVERSATION.HEADER.OPEN')} ${$t(
'CONVERSATION.HEADER.DETAILS'
)}`
`${
isContactPanelOpen
? $t('CONVERSATION.HEADER.CLOSE')
: $t('CONVERSATION.HEADER.OPEN')
} ${$t('CONVERSATION.HEADER.DETAILS')}`
}}
</button>
</div>