mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00

Applies the autofix, which caught a few places that were missed in the original find/replace See https://github.com/discourse/lint-configs/pull/91
23 lines
601 B
Plaintext
23 lines
601 B
Plaintext
import Component from "@glimmer/component";
|
|
import icon from "discourse/helpers/d-icon";
|
|
import replaceEmoji from "discourse/helpers/replace-emoji";
|
|
|
|
export default class ChatThreadHeading extends Component {
|
|
get showHeading() {
|
|
return this.args.thread?.title;
|
|
}
|
|
|
|
<template>
|
|
{{#if this.showHeading}}
|
|
<div class="chat-thread__heading">
|
|
<div class="chat-thread__heading-icon">
|
|
{{icon "discourse-threads"}}
|
|
</div>
|
|
<h2 class="chat-thread__heading-title">
|
|
{{replaceEmoji @thread.title}}
|
|
</h2>
|
|
</div>
|
|
{{/if}}
|
|
</template>
|
|
}
|