DEV: Remove unused modifyClass

The controller customizations are unused since 89962793d0
This commit is contained in:
David Taylor 2025-03-04 21:25:59 +00:00
parent 2f3eff4b81
commit 813cd84e69
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
1 changed files with 0 additions and 22 deletions

View File

@ -38,28 +38,6 @@ export default {
this.model.set("user_custom_fields", cfs);
});
api.modifyClass("controller:user", {
pluginId: PLUGIN_ID,
userNotesCount: null,
@on("init")
@observes("model")
_modelChanged: function () {
this.set(
"userNotesCount",
this.get("model.custom_fields.user_notes_count") || 0
);
},
actions: {
showUserNotes() {
showUserNotes(store, this.model.id, (count) =>
this.set("userNotesCount", count)
);
},
},
});
const mobileView = api.container.lookup("service:site").mobileView;
const loc = mobileView ? "before" : "after";
api.decorateWidget(`poster-name:${loc}`, (dec) => {