Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Merge branch 'ui_conventions' of https://github.com/paviliondev/discourse-custom-wizard into ui_conventions
Dieser Commit ist enthalten in:
Commit
466229af0b
1 geänderte Dateien mit 12 neuen und 0 gelöschten Zeilen
|
@ -24,6 +24,18 @@ export default Controller.extend({
|
||||||
this.set("loadingMore", false);
|
this.set("loadingMore", false);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
@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() {
|
||||||
|
|
Laden …
In neuem Issue referenzieren