Skip to content

Commit

Permalink
fix: submission details not displaying (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredgalanis authored Oct 20, 2023
1 parent e81570c commit 3551b54
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/display-metadata-keys/index.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{! template-lint-disable no-triple-curlies }}
<ul class="list-unstyled">
<ul class="list-unstyled" {{did-insert this.setupDisplayData}}>
{{#each this.displayData as |data|}}
<li>
{{#if data.isArray}}
Expand Down
11 changes: 9 additions & 2 deletions app/components/display-metadata-keys/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';

export default class DisplayMetadataKeys extends Component {
@service metadataSchema;

get displayData() {
return this.metadataSchema.displayMetadata(this.args.submission);
@tracked displayData = null;

@action
async setupDisplayData() {
const schemaService = this.metadataSchema;
const displayData = await schemaService.displayMetadata(this.args.submission);
this.displayData = displayData;
}
}
2 changes: 1 addition & 1 deletion app/components/workflow-review/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class WorkflowReview extends Component {
inputOptions: {
agree: `I agree to the above statement on today's date.`,
noAgree:
'I do not agree to the above statement and I understand that if I proceed and do not check this box, my submission will not be deposited to above repository.',
'I do not agree to the above statement and I understand that if I proceed and do not check this box, my submission will not be deposited to the above repository.',
},
inputValidator: (value) => {
if (!value) {
Expand Down

0 comments on commit 3551b54

Please sign in to comment.