WIP: update field data handling to support column toggling
Dieser Commit ist enthalten in:
Ursprung
55b92f4256
Commit
03fb7b7ada
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
|
@ -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: {
|
actions: {
|
||||||
loadMore() {
|
loadMore() {
|
||||||
if (!this.loadingMore && this.submissions.length < this.total) {
|
if (!this.loadingMore && this.submissions.length < this.total) {
|
||||||
|
|
Laden …
In neuem Issue referenzieren