2021-11-01 14:52:29 +01:00
|
|
|
import CustomWizardNotice from "../models/custom-wizard-notice";
|
|
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
import { A } from "@ember/array";
|
|
|
|
|
|
|
|
export default DiscourseRoute.extend({
|
|
|
|
model() {
|
|
|
|
return CustomWizardNotice.list({ include_all: true });
|
|
|
|
},
|
|
|
|
|
|
|
|
setupController(controller, model) {
|
|
|
|
controller.setProperties({
|
2021-11-17 13:48:11 +01:00
|
|
|
notices: A(
|
|
|
|
model.notices.map((notice) => CustomWizardNotice.create(notice))
|
|
|
|
),
|
2021-11-01 14:52:29 +01:00
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|