Fix linting
Dieser Commit ist enthalten in:
Ursprung
1f077ce22b
Commit
94e1d4988d
4 geänderte Dateien mit 10 neuen und 8 gelöschten Zeilen
|
@ -20,7 +20,7 @@ export default Controller.extend({
|
|||
CustomWizardAdmin.submissions(wizardId, page)
|
||||
.then((result) => {
|
||||
if (result.submissions) {
|
||||
const { fields, submissions } = formatModel(result);
|
||||
const { submissions } = formatModel(result);
|
||||
|
||||
this.get("submissions").pushObjects(submissions);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,11 @@ import EmberObject from "@ember/object";
|
|||
|
||||
function formatModel(model) {
|
||||
let fields = [
|
||||
EmberObject.create({ id: "submitted_at", label: "Submitted At", enabled: true }),
|
||||
EmberObject.create({
|
||||
id: "submitted_at",
|
||||
label: "Submitted At",
|
||||
enabled: true,
|
||||
}),
|
||||
EmberObject.create({ id: "username", label: "User", enabled: true }),
|
||||
];
|
||||
let submissions = [];
|
||||
|
@ -32,6 +36,4 @@ function formatModel(model) {
|
|||
return { fields, submissions };
|
||||
}
|
||||
|
||||
export {
|
||||
formatModel
|
||||
}
|
||||
export { formatModel };
|
||||
|
|
|
@ -215,8 +215,8 @@ CustomWizardAdmin.reopenClass({
|
|||
return ajax(`/admin/wizards/submissions/${wizardId}`, {
|
||||
type: "GET",
|
||||
data: {
|
||||
page
|
||||
}
|
||||
page,
|
||||
},
|
||||
}).catch(popupAjaxError);
|
||||
},
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ export default DiscourseRoute.extend({
|
|||
},
|
||||
|
||||
setupController(controller, model) {
|
||||
const { fields, submissions } = formatModel(model);
|
||||
const { fields, submissions } = formatModel(model);
|
||||
|
||||
controller.setProperties({
|
||||
wizard: model.wizard,
|
||||
|
|
Laden …
In neuem Issue referenzieren