mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-04 04:42:12 +00:00
Fix linting issues
This commit is contained in:
parent
ea194b1f4f
commit
25920252f3
@ -3,7 +3,7 @@ import { tracked } from "@glimmer/tracking";
|
|||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
import { and, not } from "truth-helpers";
|
import { and } from "truth-helpers";
|
||||||
import DButton from "discourse/components/d-button";
|
import DButton from "discourse/components/d-button";
|
||||||
import icon from "discourse/helpers/d-icon";
|
import icon from "discourse/helpers/d-icon";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
|
@ -136,7 +136,7 @@ function customizePostMenu(api) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleMessages(api) {
|
function handleMessages(api) {
|
||||||
const handleMessages = async (controller, message) => {
|
const callback = async (controller, message) => {
|
||||||
const topic = controller.model;
|
const topic = controller.model;
|
||||||
|
|
||||||
if (topic) {
|
if (topic) {
|
||||||
@ -144,8 +144,8 @@ function handleMessages(api) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
api.registerCustomPostMessageCallback("accepted_solution", handleMessages);
|
api.registerCustomPostMessageCallback("accepted_solution", callback);
|
||||||
api.registerCustomPostMessageCallback("unaccepted_solution", handleMessages);
|
api.registerCustomPostMessageCallback("unaccepted_solution", callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user