Skip to content

Commit

Permalink
fixup! fixup! feat: add recipient info on the right side of the composer
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Nov 25, 2024
1 parent a987229 commit a4fbbbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/NewMessageModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
</div>

<div v-if="showRecipientPane" class="right-pane">
<RecipientInfo :recipient="composerData.to" />
<RecipientInfo />
</div>
</div>
</template>
Expand Down
17 changes: 4 additions & 13 deletions src/components/RecipientInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@
<div v-if="recipients.length === 1" class="recipient-single">
<div class="recipient-header">
<div class="recipient-avatar">
<Avatar :user="recipients[0].uid"
:display-name="recipients[0].displayName"
<Avatar :display-name="recipients[0].label"
:email="recipients[0].email"
:size="64"
:disable-tooltip="true"
:disable-menu="true"
:url="recipients[0].photoUrl" />
</div>
<div class="recipient-details">
<h6>{{ recipient[0].email }}</h6>
<DisplayContactDetails :email="recipient[0].email" />
<DisplayContactDetails :email="recipients[0].email" />
</div>
</div>
</div>
Expand All @@ -23,14 +21,13 @@
<div v-else class="recipient-multiple">
<div v-for="(recipient, index) in recipients" :key="index" class="recipient-item">
<div class="recipient-header">
<Avatar :user="recipient.uid"
:display-name="recipient.displayName"
<Avatar :display-name="recipient.label"
:email="recipient.email"
:size="64"
:disable-tooltip="true"
:disable-menu="true" />
<div v-if="!expandedRecipients[index]" class="recipient-name">
<h6>{{ recipient.email }}</h6>
<h6>{{ recipient.email }}</h6>
</div>
<div class="expand-toggle" @click="toggleExpand(index)">
<IconArrowUp v-if="isExpanded(index)" :size="16" />
Expand Down Expand Up @@ -59,12 +56,6 @@ export default {
IconArrowUp,
DisplayContactDetails,
},
props: {
recipient: {
type: Array,
required: true,
},
},
data() {
return {
expandedRecipients: [],
Expand Down

0 comments on commit a4fbbbf

Please sign in to comment.