1
0
Fork 0

Merge branch 'ui_conventions' of https://github.com/paviliondev/discourse-custom-wizard into ui_conventions

Dieser Commit ist enthalten in:
Keegan George 2021-08-30 11:58:19 -07:00
Commit 466229af0b

Datei anzeigen

@ -25,6 +25,18 @@ export default Controller.extend({
});
},
@discourseComputed('submissions', 'fields.@each.enabled')
displaySubmissions(submissions, fields) {
return submissions.map(submission => {
let field = fields.find(f => Object.keys(submission).includes(f.id));
if (!field.enabled) {
submission.delete(field.id);
};
return submission;
});
},
actions: {
loadMore() {
if (!this.loadingMore && this.submissions.length < this.total) {