16 lines
288 B
Plaintext
16 lines
288 B
Plaintext
|
|
||
|
export default Discourse.Route.extend({
|
||
|
model() {
|
||
|
return {};
|
||
|
},
|
||
|
|
||
|
setupController(controller, model) {
|
||
|
if (this.currentUser.id !== this.modelFor("user").id) {
|
||
|
this.replaceWith("userActivity");
|
||
|
}
|
||
|
else {
|
||
|
controller.setProperties({ model });
|
||
|
};
|
||
|
}
|
||
|
});
|