We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48ab179 commit 4400bebCopy full SHA for 4400beb
app/components/form/responses-table-card.hbs
@@ -22,7 +22,7 @@
22
</div>
23
24
<div class='table-responsive responses-table'>
25
- <Form::ResponsesTable @form={{@form}} @responses={{@form.responses}} @showAllergyInfo={{this.showAllergyInfo}} />
+ <Form::ResponsesTable @form={{@form}} @responses={{@form.sortedResponses}} @showAllergyInfo={{this.showAllergyInfo}} />
26
27
28
{{else}}
app/models/form/form.js
@@ -31,6 +31,10 @@ export default class Form extends Model {
31
return this.questions.sortBy('position');
32
}
33
34
+ get sortedResponses() {
35
+ return this.responses.sortBy('user.id');
36
+ }
37
+
38
get currentUserCanRespond() {
39
return !this.currentUserResponseCompleted && this.canRespond;
40
0 commit comments