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

14 lines
316 B
JavaScript
Raw Normal View History

2019-12-12 19:54:32 -05:00
import Route from "@ember/routing/route";
2019-10-27 23:05:58 -04:00
2019-12-12 19:54:32 -05:00
export default Route.extend({
2019-12-15 18:42:55 -05:00
templateName: "user/billing",
2019-10-24 22:23:32 -04:00
setupController(controller, model) {
if (this.currentUser.id !== this.modelFor("user").id) {
this.replaceWith("userActivity");
2019-10-24 23:00:59 -04:00
} else {
2019-10-24 22:23:32 -04:00
controller.setProperties({ model });
2019-10-24 23:00:59 -04:00
}
2020-09-16 10:53:50 -04:00
},
2019-10-24 22:23:32 -04:00
});