0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 05:52:52 +01:00
discourse-custom-wizard/assets/javascripts/discourse/routes/admin-wizards-subscription.js.es6

20 Zeilen
434 B
Text

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