Improve archive helper text

This commit is contained in:
Yusuf Sahin HAMZA 2022-01-07 00:06:33 +03:00 committed by Josh Perez
parent 28c1346a25
commit e150353f3f
2 changed files with 7 additions and 1 deletions

View file

@ -221,6 +221,10 @@
"message": "These conversations are archived and will only appear in the Inbox if new messages are received.", "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" "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": { "archiveConversation": {
"message": "Archive", "message": "Archive",
"description": "Shown in menu for conversation, and moves conversation out of main conversation list" "description": "Shown in menu for conversation, and moves conversation out of main conversation list"

View file

@ -117,7 +117,9 @@ export class LeftPaneArchiveHelper extends LeftPaneHelper<LeftPaneArchivePropsTy
return ( return (
<div className="module-left-pane__archive-helper-text"> <div className="module-left-pane__archive-helper-text">
{i18n('archiveHelperText')} {this.getRowCount() > 0
? i18n('archiveHelperText')
: i18n('noArchivedConversations')}
</div> </div>
); );
} }