2021-09-24 11:58:42 +02:00
|
|
|
import CustomWizardSubscription from "../models/custom-wizard-subscription";
|
2021-08-10 08:45:23 +02:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
|
|
|
|
export default DiscourseRoute.extend({
|
|
|
|
model() {
|
2021-09-24 11:58:42 +02:00
|
|
|
return CustomWizardSubscription.status();
|
2021-08-10 08:45:23 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
2021-09-07 14:13:01 +02:00
|
|
|
controller.set("model", model);
|
2021-08-10 08:45:23 +02:00
|
|
|
controller.setup();
|
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
authorize() {
|
2021-09-24 11:58:42 +02:00
|
|
|
CustomWizardSubscription.authorize();
|
2021-09-07 14:13:01 +02:00
|
|
|
},
|
|
|
|
},
|
2021-08-10 08:45:23 +02:00
|
|
|
});
|