2019-12-13 11:54:32 +11:00
|
|
|
import Route from "@ember/routing/route";
|
2019-10-28 14:05:58 +11:00
|
|
|
|
2019-12-13 11:54:32 +11:00
|
|
|
export default Route.extend({
|
2019-12-16 10:42:55 +11:00
|
|
|
templateName: "user/billing",
|
2019-10-25 13:23:32 +11:00
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
|
if (this.currentUser.id !== this.modelFor("user").id) {
|
|
|
|
|
this.replaceWith("userActivity");
|
2019-10-25 14:00:59 +11:00
|
|
|
} else {
|
2019-10-25 13:23:32 +11:00
|
|
|
controller.setProperties({ model });
|
2019-10-25 14:00:59 +11:00
|
|
|
}
|
2020-09-16 09:53:50 -05:00
|
|
|
},
|
2019-10-25 13:23:32 +11:00
|
|
|
});
|