1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/routes/admin-wizards-custom-fields.js.es6
Angus McLeod cf50a7deb3
Apply prettier 💄 (#80)
* Apply prettier

* applied prettier for similar-topics-validator

Co-authored-by: Faizaan Gagan <fzngagan@gmail.com>
2021-03-28 14:36:49 +05:30

14 Zeilen
413 B
JavaScript

import DiscourseRoute from "discourse/routes/discourse";
import CustomWizardCustomField from "../models/custom-wizard-custom-field";
import { A } from "@ember/array";
export default DiscourseRoute.extend({
model() {
return CustomWizardCustomField.listFields();
},
setupController(controller, model) {
const customFields = A(model || []);
controller.set("customFields", customFields);
},
});