diff --git a/src/components/Composer.vue b/src/components/Composer.vue index 3bc22cecf3..3a183d0dea 100644 --- a/src/components/Composer.vue +++ b/src/components/Composer.vue @@ -43,20 +43,15 @@
-
- - - {{ t('mail', 'Cc/Bcc') }} - -
+
+ + {{ t('mail', 'Cc/Bcc') }} + diff --git a/src/components/RecipientInfo.vue b/src/components/RecipientInfo.vue index ff53f9c1be..f7171000e7 100644 --- a/src/components/RecipientInfo.vue +++ b/src/components/RecipientInfo.vue @@ -6,19 +6,23 @@
-
-
- -
-
- -
+
+ +
+
+ {{ recipients[0].label }} + + {{ recipients[0].email }} + +
+
+
@@ -26,30 +30,25 @@
-
+
-
-
{{ recipient.email }}
-
-
- - +
+ {{ recipient.label }} + + {{ recipient.email }} +
+
@@ -91,8 +90,16 @@ export default { watch: { recipients: { immediate: true, - handler() { - this.expandedRecipients = this.recipients.map(() => false) + handler(newRecipients) { + const next = newRecipients.length + const current = this.expandedRecipients.length + if (next > current) { + for (let i = current; i < next; i++) { + this.$set(this.expandedRecipients, i, false) + } + } else if (next < current) { + this.expandedRecipients = this.expandedRecipients.slice(0, next) + } }, }, }, @@ -121,51 +128,108 @@ export default { diff --git a/src/views/Home.vue b/src/views/Home.vue index 907fe3b880..a8403ebbdb 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -12,7 +12,7 @@ :mailbox="activeMailbox" /> @@ -50,7 +50,7 @@ export default { computed: { ...mapStores(useMainStore), - ...mapState(useMainStore, ['composerSessionId']), + ...mapState(useMainStore, ['composerSessionId', 'showMessageComposer']), accounts() { return this.mainStore.getAccounts.filter((a) => !a.isUnified) },