From e150353f3fd7e06127c27d203eaa603dfdfc3c37 Mon Sep 17 00:00:00 2001 From: Yusuf Sahin HAMZA Date: Fri, 7 Jan 2022 00:06:33 +0300 Subject: [PATCH] Improve archive helper text --- _locales/en/messages.json | 4 ++++ ts/components/leftPane/LeftPaneArchiveHelper.tsx | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 32fdf2cb53..bf1150e21d 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -221,6 +221,10 @@ "message": "These conversations are archived and will only appear in the Inbox if new messages are received.", "description": "Shown at the top of the archived conversations list in the left pane" }, + "noArchivedConversations": { + "message": "No archived conversations.", + "description": "Shown at the top of the archived conversations list in the left pane if there is no any archived conversation" + }, "archiveConversation": { "message": "Archive", "description": "Shown in menu for conversation, and moves conversation out of main conversation list" diff --git a/ts/components/leftPane/LeftPaneArchiveHelper.tsx b/ts/components/leftPane/LeftPaneArchiveHelper.tsx index c3465050a5..971a279de0 100644 --- a/ts/components/leftPane/LeftPaneArchiveHelper.tsx +++ b/ts/components/leftPane/LeftPaneArchiveHelper.tsx @@ -117,7 +117,9 @@ export class LeftPaneArchiveHelper extends LeftPaneHelper - {i18n('archiveHelperText')} + {this.getRowCount() > 0 + ? i18n('archiveHelperText') + : i18n('noArchivedConversations')} ); }