Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 16106a2

Browse files
author
the-djmaze
committed
Resolve #1798
1 parent 9eb7f38 commit 16106a2

File tree

39 files changed

+88
-4
lines changed

39 files changed

+88
-4
lines changed

dev/View/User/MailBox/MessageList.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,19 @@ export class MailMessageList extends AbstractViewRight {
213213

214214
sortText: () => {
215215
let mode = FolderUserStore.sortMode(),
216-
desc = '' === mode || mode.includes('REVERSE');
216+
has = w => mode.includes(w),
217+
desc = '' === mode || has('REVERSE');
217218
mode = mode.split(/\s+/);
218-
if (mode.includes('FROM')) {
219+
if (has('FROM')) {
219220
return '@' + (desc ? '⬆' : '⬇');
220221
}
221-
if (mode.includes('SUBJECT')) {
222+
if (has('SUBJECT')) {
222223
return '𝐒' + (desc ? '⬆' : '⬇');
223224
}
224-
return (mode.includes('SIZE') ? '✉' : '📅') + (desc ? '⬇' : '⬆');
225+
if (has('SIZE')) {
226+
return '✉' + (desc ? '⬇' : '⬆');
227+
}
228+
return (has('ARRIVAL') ? '📨' : '📅') + (desc ? '⬇' : '⬆');
225229
},
226230

227231
downloadAsZipAllowed: () => this.attachmentsActions.includes('zip')

snappymail/v/0.0.0/app/localization/ar/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Using <strong>%SIZE% (%PROC%%)<\/strong> of your <strong>%LIMIT%<\/strong>",
131131
"SORT": "Sort",
132132
"NO_SORT": "Mail server does not support sorting",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Date ascending",
134136
"SORT_DATE_DESC": "Date descending",
135137
"SORT_SIZE_ASC": "Size ascending",

snappymail/v/0.0.0/app/localization/be/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Выкарыстана <strong>%SIZE% (%PROC%%)<\/strong> з <strong>%LIMIT%<\/strong>",
131131
"SORT": "Сартаванне",
132132
"NO_SORT": "Паштовы сервер не падтрымлівае сартаванне",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Дата па ўзрастанні",
134136
"SORT_DATE_DESC": "Дата па спаданні",
135137
"SORT_SIZE_ASC": "Памер па ўзрастанні",

snappymail/v/0.0.0/app/localization/bg/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Използване на <strong>%SIZE% (%PROC%%)<\/strong> от вашите <strong>%LIMIT%<\/strong>",
131131
"SORT": "Sort",
132132
"NO_SORT": "Mail server does not support sorting",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Date ascending",
134136
"SORT_DATE_DESC": "Date descending",
135137
"SORT_SIZE_ASC": "Size ascending",

snappymail/v/0.0.0/app/localization/cs/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Používáte <strong>%SIZE% (%PROC%%)<\/strong> z vašich <strong>%LIMIT%<\/strong>",
131131
"SORT": "Sort",
132132
"NO_SORT": "Mail server does not support sorting",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Date ascending",
134136
"SORT_DATE_DESC": "Date descending",
135137
"SORT_SIZE_ASC": "Size ascending",

snappymail/v/0.0.0/app/localization/da/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Du bruger <strong>%SIZE% (%PROC%%)<\/strong> af <strong>%LIMIT%<\/strong>",
131131
"SORT": "Sort",
132132
"NO_SORT": "Mail server does not support sorting",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Date ascending",
134136
"SORT_DATE_DESC": "Date descending",
135137
"SORT_SIZE_ASC": "Size ascending",

snappymail/v/0.0.0/app/localization/de/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Sie nutzen <strong>%SIZE% (%PROC%%)<\/strong> von <strong>%LIMIT%<\/strong>.",
131131
"SORT": "Sortieren",
132132
"NO_SORT": "Ihr Mailserver unterstützt das Sortieren von E-Mails nicht",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Datum aufsteigend",
134136
"SORT_DATE_DESC": "Datum absteigend",
135137
"SORT_SIZE_ASC": "Größe aufsteigend",

snappymail/v/0.0.0/app/localization/el/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Χρησιμοποιούνται <strong>%SIZE% (%PROC%%)<\/strong> από <strong>%LIMIT%<\/strong>",
131131
"SORT": "Sort",
132132
"NO_SORT": "Mail server does not support sorting",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Date ascending",
134136
"SORT_DATE_DESC": "Date descending",
135137
"SORT_SIZE_ASC": "Size ascending",

snappymail/v/0.0.0/app/localization/en/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Using <strong>%SIZE% (%PROC%%)<\/strong> of your <strong>%LIMIT%<\/strong>",
131131
"SORT": "Sort",
132132
"NO_SORT": "Mail server does not support sorting",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Date ascending",
134136
"SORT_DATE_DESC": "Date descending",
135137
"SORT_SIZE_ASC": "Size ascending",

snappymail/v/0.0.0/app/localization/es/user.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
"QUOTA_SIZE": "Usando <strong>%SIZE% (%PROC%%)<\/strong> de sus <strong>%LIMIT%<\/strong>",
131131
"SORT": "Ordenar",
132132
"NO_SORT": "El servidor no soporta clasificación",
133+
"SORT_ARRIVAL_ASC": "Arrived ascending",
134+
"SORT_ARRIVAL_DESC": "Arrived descending",
133135
"SORT_DATE_ASC": "Fecha ascendente",
134136
"SORT_DATE_DESC": "Fecha descendente",
135137
"SORT_SIZE_ASC": "Tamaño ascendente",

0 commit comments

Comments
 (0)