Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: submission details not displaying #1235

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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