mirror of
https://github.com/discourse/discourse-solved.git
synced 2026-09-17 06:52:14 -04:00
DEV: Update linting (#340)
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import TopicListItem from "discourse/components/topic-list-item";
|
||||
import discourseComputed from "discourse/lib/decorators";
|
||||
import { withSilencedDeprecations } from "discourse/lib/deprecated";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
|
||||
export default {
|
||||
@@ -8,20 +5,6 @@ export default {
|
||||
|
||||
initialize() {
|
||||
withPluginApi("1.39.0", (api) => {
|
||||
// TODO: cvx - remove after the glimmer topic list transition
|
||||
withSilencedDeprecations("discourse.hbr-topic-list-overrides", () => {
|
||||
TopicListItem.reopen({
|
||||
@discourseComputed()
|
||||
unboundClassNames() {
|
||||
let classList = this._super(...arguments);
|
||||
if (this.topic.has_accepted_answer) {
|
||||
classList += " status-solved";
|
||||
}
|
||||
return classList;
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
api.registerValueTransformer(
|
||||
"topic-list-item-class",
|
||||
({ value, context }) => {
|
||||
|
||||
Reference in New Issue
Block a user