0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6
2021-07-14 14:05:13 +08:00

18 Zeilen
471 B
JavaScript

import CustomWizard from "../models/custom-wizard";
import DiscourseRoute from "discourse/routes/discourse";
import { A } from "@ember/array";
export default DiscourseRoute.extend({
model(params) {
return CustomWizard.submissions(params.wizardId);
},
setupController(controller, model) {
controller.setProperties({
wizard: model.wizard,
fields: model.fields,
submissions: A(model.submissions),
total: model.total,
});
},
});