Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 09:50:28 +01:00
19 Zeilen
434 B
JavaScript
19 Zeilen
434 B
JavaScript
import CustomWizardSubscription from "../models/custom-wizard-subscription";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default DiscourseRoute.extend({
|
|
model() {
|
|
return CustomWizardSubscription.status();
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.set("model", model);
|
|
controller.setup();
|
|
},
|
|
|
|
actions: {
|
|
authorize() {
|
|
CustomWizardSubscription.authorize();
|
|
},
|
|
},
|
|
});
|