mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-02 07:39:26 +00:00
16 lines
288 B
JavaScript
16 lines
288 B
JavaScript
|
|
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 });
|
|
};
|
|
}
|
|
});
|