Fix Plugin Depreciations (#41)
Co-authored-by: Isaac Janzen <isaac@brandnewbox.com>
This commit is contained in:
parent
21902fd9fa
commit
1c72862328
|
@ -3,6 +3,8 @@ import { iconNode } from "discourse-common/lib/icon-library";
|
||||||
import { showUserNotes } from "discourse/plugins/discourse-user-notes/discourse-user-notes/lib/user-notes";
|
import { showUserNotes } from "discourse/plugins/discourse-user-notes/discourse-user-notes/lib/user-notes";
|
||||||
import { observes, on } from "discourse-common/utils/decorators";
|
import { observes, on } from "discourse-common/utils/decorators";
|
||||||
|
|
||||||
|
const PLUGIN_ID = "discourse-user-notes";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "enable-user-notes",
|
name: "enable-user-notes",
|
||||||
initialize(container) {
|
initialize(container) {
|
||||||
|
@ -38,6 +40,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
api.modifyClass("controller:user", {
|
api.modifyClass("controller:user", {
|
||||||
|
pluginId: PLUGIN_ID,
|
||||||
userNotesCount: null,
|
userNotesCount: null,
|
||||||
|
|
||||||
@on("init")
|
@on("init")
|
||||||
|
|
Loading…
Reference in New Issue