Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com> Co-Authored-By: David Taylor <david@taylorhq.com>
19 lines
353 B
JavaScript
19 lines
353 B
JavaScript
export default Discourse.Route.extend({
|
|
showFooter: true,
|
|
|
|
model() {
|
|
const user = this.modelFor("user");
|
|
if (user.get("profile_hidden")) {
|
|
return this.replaceWith("user.profile-hidden");
|
|
}
|
|
|
|
return user.summary();
|
|
},
|
|
|
|
actions: {
|
|
didTransition() {
|
|
this.controllerFor("user").set("indexStream", true);
|
|
}
|
|
}
|
|
});
|