Revert removal of header search icon

Rendering is still disabled.
This commit is contained in:
Vince 2020-03-05 15:14:56 +11:00 committed by GitHub
parent 840f280a37
commit 06142c880a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -255,6 +255,19 @@ export class ConversationHeader extends React.Component<Props> {
);
}
public renderSearch() {
return (
<div className="search-icon">
<SessionIconButton
iconType={SessionIconType.Search}
iconSize={SessionIconSize.Large}
iconPadded={true}
onClick={this.highlightMessageSearch}
/>
</div>
);
}
public renderOptions(triggerId: string) {
const { showBackButton } = this.props;
@ -385,6 +398,12 @@ export class ConversationHeader extends React.Component<Props> {
</div>
</div>
{this.renderExpirationLength()}
{!this.props.isRss && (
<>
{this.renderAvatar()}
</>
)}
{!this.props.isRss && this.renderAvatar()}
@ -400,6 +419,12 @@ export class ConversationHeader extends React.Component<Props> {
}
}
public highlightMessageSearch() {
// This is a temporary fix. In future we want to search
// messages in the current conversation
$('.session-search-input input').focus();
}
private renderPublicMenuItems() {
const {
i18n,