1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/routes/admin-wizards-submissions-show.js.es6
2021-07-14 14:04:19 +08:00

18 Zeilen
470 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
});
},
});