DEV: Remove unused modifyClass
The controller customizations are unused since 89962793d0
This commit is contained in:
parent
2f3eff4b81
commit
813cd84e69
|
@ -38,28 +38,6 @@ export default {
|
||||||
this.model.set("user_custom_fields", cfs);
|
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 mobileView = api.container.lookup("service:site").mobileView;
|
||||||
const loc = mobileView ? "before" : "after";
|
const loc = mobileView ? "before" : "after";
|
||||||
api.decorateWidget(`poster-name:${loc}`, (dec) => {
|
api.decorateWidget(`poster-name:${loc}`, (dec) => {
|
||||||
|
|
Loading…
Reference in New Issue