Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-30 04:30:29 +01:00
18 Zeilen
435 B
Text
18 Zeilen
435 B
Text
|
import CustomWizardLogs from "../models/custom-wizard-logs";
|
||
|
import DiscourseRoute from "discourse/routes/discourse";
|
||
|
import { A } from "@ember/array";
|
||
|
|
||
|
export default DiscourseRoute.extend({
|
||
|
model(params) {
|
||
|
return CustomWizardLogs.list(params.wizardId);
|
||
|
},
|
||
|
|
||
|
setupController(controller, model) {
|
||
|
controller.setProperties({
|
||
|
wizard: model.wizard,
|
||
|
logs: A(model.logs),
|
||
|
total: model.total,
|
||
|
});
|
||
|
},
|
||
|
});
|