Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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: 3 additions & 3 deletions app/threads/client/components/ThreadView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ThreadView = forwardRef<Element, ThreadViewProps>(({

const t = useTranslation();

const expandLabel = expanded ? t('collapse') : t('expand');
const expandLabel = expanded ? t('Collapse') : t('Expand');
const expandIcon = expanded ? 'arrow-collapse' : 'arrow-expand';

const handleExpandActionClick = useCallback(() => {
Expand Down Expand Up @@ -69,9 +69,9 @@ const ThreadView = forwardRef<Element, ThreadViewProps>(({
<VerticalBar.Header>
<VerticalBar.Icon name='thread' />
<VerticalBar.Text dangerouslySetInnerHTML={{ __html: title }} />
{hasExpand && <VerticalBar.Action aria-label={expandLabel} name={expandIcon} onClick={handleExpandActionClick} />}
{hasExpand && <VerticalBar.Action title={expandLabel} name={expandIcon} onClick={handleExpandActionClick} />}
<VerticalBar.Actions>
<VerticalBar.Action aria-label={followLabel} name={followIcon} onClick={handleFollowActionClick} />
<VerticalBar.Action title={followLabel} name={followIcon} onClick={handleFollowActionClick} />
<VerticalBar.Close onClick={onClose} />
</VerticalBar.Actions>
</VerticalBar.Header>
Expand Down
1 change: 1 addition & 0 deletions packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,7 @@
"Exclude_pinned": "Exclude pinned messages",
"Execute_Synchronization_Now": "Execute Synchronization Now",
"Exit_Full_Screen": "Exit Full Screen",
"Expand": "Expand",
"Experimental_Feature_Alert": "This is an experimental feature! Please be aware that it may change, break, or even be removed in the future without any notice.",
"Expiration": "Expiration",
"Expiration_(Days)": "Expiration (Days)",
Expand Down