We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f3eff4 commit 813cd84Copy full SHA for 813cd84
assets/javascripts/discourse/initializers/enable-user-notes.js
@@ -38,28 +38,6 @@ export default {
38
this.model.set("user_custom_fields", cfs);
39
});
40
41
- api.modifyClass("controller:user", {
42
- pluginId: PLUGIN_ID,
43
- userNotesCount: null,
44
-
45
- @on("init")
46
- @observes("model")
47
- _modelChanged: function () {
48
- this.set(
49
- "userNotesCount",
50
- this.get("model.custom_fields.user_notes_count") || 0
51
- );
52
- },
53
54
- actions: {
55
- showUserNotes() {
56
- showUserNotes(store, this.model.id, (count) =>
57
- this.set("userNotesCount", count)
58
59
60
61
- });
62
63
const mobileView = api.container.lookup("service:site").mobileView;
64
const loc = mobileView ? "before" : "after";
65
api.decorateWidget(`poster-name:${loc}`, (dec) => {
0 commit comments