Skip to content

Commit

Permalink
update model
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed May 4, 2020
1 parent 21569e1 commit 8091195
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/components/doi-alternate-identifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default Component.extend({
this.fragment.set('alternativeIdentifierType', alternateIdentifierType);
this.set('alternateIdentifierTypes', alternateIdentifierTypeList);
},
deleteIdentifier() {
deleteAlternateIdentifier() {
this.model.get('alternateIdentifiers').removeObject(this.fragment);
},
},
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/dois/show/modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default Controller.extend({
doi.set('language', null);
doi.set('subjects', null);
doi.set('contributors', null);
doi.set('identifiers', null);
doi.set('alternateIdentifiers', null);
doi.set('relatedIdentifiers', null);
doi.set('fundingReferences', null);
doi.set('geoLocations', null);
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/repositories/show/dois/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default Controller.extend({
doi.set('subjects', null);
doi.set('language', null);
doi.set('contributors', null);
doi.set('identifiers', null);
doi.set('alternateIdentifiers', null);
doi.set('relatedIdentifiers', null);
doi.set('fundingReferences', null);
doi.set('geoLocations', null);
Expand Down
4 changes: 2 additions & 2 deletions app/models/alternate-identifier.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: 'Alternate Identifier must include Identifier Type',
disabled: computed('model.identifier', function() {
return isBlank(this.model.get('identifier'));
disabled: computed('model.alternateIdentifier', function() {
return isBlank(this.model.get('alternateIdentifier'));
}),
}),
],
Expand Down

0 comments on commit 8091195

Please sign in to comment.