mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:51:22 +08:00
DEV: Fix linting issues in core plugins (#14916)
This commit is contained in:
@ -12,6 +12,7 @@ import loadScript from "discourse/lib/load-script";
|
||||
import { notEmpty } from "@ember/object/computed";
|
||||
import { propertyNotEqual } from "discourse/lib/computed";
|
||||
import { schedule } from "@ember/runloop";
|
||||
import { getOwner } from "discourse-common/lib/get-owner";
|
||||
|
||||
export default Component.extend({
|
||||
timeFormat: "HH:mm:ss",
|
||||
@ -435,7 +436,7 @@ export default Component.extend({
|
||||
},
|
||||
|
||||
_closeModal() {
|
||||
const composer = Discourse.__container__.lookup("controller:composer");
|
||||
const composer = getOwner(this).lookup("controller:composer");
|
||||
composer.send("closeModal");
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user