Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add caption for empty TAC #12226

Merged
merged 3 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions res/css/structures/_ThreadsActivityCentre.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@
}
}
}

.mx_ThreadsActivityCentre_emptyCaption {
padding-left: 16px;
padding-right: 16px;
font-size: 13px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export function ThreadsActivityCentre({ displayButtonLabel }: ThreadsActivityCen
onClick={() => setOpen(false)}
/>
))}
{roomsAndNotifications.rooms.length === 0 && (
<div className="mx_ThreadsActivityCentre_emptyCaption">
{_t("tac|no_rooms_with_unreads_threads")}
</div>
)}
</div>
</Menu>
);
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3120,6 +3120,9 @@
"empty": "You don't currently have any stickerpacks enabled",
"empty_add_prompt": "Add some now"
},
"tac": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A threads_activity_centre category is available in the lang json

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, thanks

"no_rooms_with_unreads_threads": "You don't have rooms with unread threads yet."
},
"terms": {
"column_document": "Document",
"column_service": "Service",
Expand Down
Loading