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

17 lines
387 B
JavaScript
Raw Normal View History

2019-12-12 19:54:32 -05:00
import Route from "@ember/routing/route";
2024-11-19 05:31:14 -05:00
import { service } from "@ember/service";
2019-10-27 23:05:58 -04:00
2019-12-12 19:54:32 -05:00
export default Route.extend({
2024-01-16 11:51:44 -05:00
router: service(),
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) {
2024-01-16 11:51:44 -05:00
this.router.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
});