Skip to content

Commit

Permalink
Re-added a translation string and fixed the subject errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bp-cos committed Jun 25, 2024
1 parent a917e86 commit 2d3b46b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/preprints/-components/submit/metadata/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default class Metadata extends Component<MetadataArgs>{

private setHasRequiredFields(): void {
this.license = this.metadataFormChangeset.get('license');
this.displayRequiredLicenseFields = this.license.hasRequiredFields;
this.displayRequiredLicenseFields = this.license?.hasRequiredFields || false;
}

private updateLicenseRecord(): void {
Expand Down
4 changes: 0 additions & 4 deletions app/preprints/-components/submit/metadata/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
/>
{{/if}}
{{/let}}

<div local-class='input-container'>
{{#let (unique-id) 'subjects' as |subjectsFieldId|}}
<label for={{subjectsFieldId}}
Expand All @@ -96,10 +95,7 @@
@isValidating={{subjectsManager.isSaving}} />
</Subjects::Manager>
{{/let}}


</div>

<div local-class='input-container'>
{{#let (unique-id) 'tags' as |tagsFieldId|}}
<label for={{tagsFieldId}}
Expand Down
1 change: 1 addition & 0 deletions translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,7 @@ preprints:
step-review: 'Review'
action-flow:
delete: 'Delete'
delete-modal-body: 'Are you sure you want to delete the {singularPreprintWord}? This action CAN NOT be undone.'
delete-modal-title: 'Delete {singularPreprintWord}'
error: 'Error saving {singularPreprintWord}.'
error-withdrawal: 'Error withdrawing the {singularPreprintWord}.'
Expand Down

0 comments on commit 2d3b46b

Please sign in to comment.