discourse-subscriptions/assets/javascripts/discourse/routes/user-billing.js.es6

16 lines
288 B
Plaintext
Raw Normal View History

2019-10-24 22:23:32 -04:00
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 });
};
}
});