Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-26 02:50:28 +01:00
16 Zeilen
442 B
Text
16 Zeilen
442 B
Text
|
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({
|
||
|
notices: A(model.notices.map(notice => CustomWizardNotice.create(notice))),
|
||
|
});
|
||
|
},
|
||
|
});
|