Skip to content

Commit

Permalink
Change the condition when funderName validation will be disabled, whi…
Browse files Browse the repository at this point in the history
…ch is when doi state is draft, this fixes #729 (#807)
  • Loading branch information
kaysiz authored Sep 26, 2023
1 parent 20a9b39 commit 8304a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/funding-reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const Validations = buildValidations({
validator('presence', {
presence: true,
message: 'Funder Name must be included if you input a funderIdentifier.',
disabled: computed('model.funderIdentifier', function () {
return isBlank(this.model.get('funderIdentifier'));
disabled: computed('model.{funderIdentifier,state}', function () {
return this.model.get('state') === 'draft'
})
})
],
Expand Down

0 comments on commit 8304a4d

Please sign in to comment.