Files
discourse/plugins/chat/assets/javascripts/discourse/components/chat-thread-heading.gjs
David Taylor acde5c4337 DEV: Enable discourse-common-imports eslint rule (#30742)
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
2025-01-13 16:01:34 +00:00

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>
}