2021-03-28 11:06:49 +02:00
|
|
|
import CustomWizard from "../models/custom-wizard";
|
2020-03-21 18:30:11 +01:00
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
2021-07-14 08:04:19 +02:00
|
|
|
import { A } from "@ember/array";
|
2021-07-12 09:53:58 +02:00
|
|
|
|
2020-03-21 18:30:11 +01:00
|
|
|
export default DiscourseRoute.extend({
|
2017-10-05 02:36:46 +02:00
|
|
|
model(params) {
|
2020-04-13 14:17:22 +02:00
|
|
|
return CustomWizard.submissions(params.wizardId);
|
2017-10-05 02:36:46 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
2021-07-14 08:04:19 +02:00
|
|
|
controller.setProperties({
|
|
|
|
wizard: model.wizard,
|
|
|
|
fields: model.fields,
|
|
|
|
submissions: A(model.submissions),
|
2021-07-14 08:05:13 +02:00
|
|
|
total: model.total,
|
2021-07-14 08:04:19 +02:00
|
|
|
});
|
2021-03-28 11:06:49 +02:00
|
|
|
},
|
2017-10-05 02:36:46 +02:00
|
|
|
});
|