Skip to content

Commit f7b2695

Browse files
committed
fix: specify which mailbox to load more from
Signed-off-by: Hamza <[email protected]>
1 parent 5d19312 commit f7b2695

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

src/components/EnvelopeList.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
class="load-more"
129129
@click="$emit('load-more')">
130130
<AddIcon :size="16" />
131-
{{ t('mail', 'Load more') }}
131+
{{ name ? t('mail', 'Load more {name}', { name }): t('mail', 'Load more') }}
132132
</div>
133133
<div id="load-more-mail-messages" key="loadingMore" :class="{'icon-loading-small': loadingMore}" />
134134
</transition-group>
@@ -196,6 +196,10 @@ export default {
196196
type: Object,
197197
required: true,
198198
},
199+
name: {
200+
type: String,
201+
default: '',
202+
},
199203
mailbox: {
200204
type: Object,
201205
required: true,

src/components/Mailbox.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<EmptyMailbox v-else-if="!hasMessages" key="empty" />
1818
<EnvelopeList v-else
1919
:account="account"
20+
:name="name"
2021
:mailbox="mailbox"
2122
:search-query="searchQuery"
2223
:envelopes="envelopesToShow"
@@ -61,6 +62,10 @@ export default {
6162
},
6263
mixins: [isMobile],
6364
props: {
65+
name: {
66+
type: String,
67+
default: '',
68+
},
6469
account: {
6570
type: Object,
6671
required: true,

src/components/MailboxThread.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
</Popover>
5454
</div>
5555
<Mailbox v-show="hasFollowUpEnvelopes"
56+
:name="t('mail', 'follow ups')"
5657
:account="unifiedAccount"
5758
:mailbox="followUpMailbox"
5859
:search-query="appendToSearch(followUpQuery)"
@@ -81,6 +82,7 @@
8182
</div>
8283
<Mailbox v-show="hasImportantEnvelopes"
8384
class="nameimportant"
85+
:name="t('mail', 'important messages')"
8486
:account="unifiedAccount"
8587
:mailbox="unifiedInbox"
8688
:search-query="appendToSearch(priorityImportantQuery)"
@@ -93,6 +95,7 @@
9395
class="app-content-list-item section-title other"
9496
:name="t('mail', 'Other')" />
9597
<Mailbox class="nameother"
98+
:name="t('mail', 'other messages')"
9699
:account="unifiedAccount"
97100
:mailbox="unifiedInbox"
98101
:search-query="appendToSearch(priorityOtherQuery)"

0 commit comments

Comments
 (0)