Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fixed button to display update after adding new visit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc committed Mar 15, 2017
1 parent c2afff6 commit 5441db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/visits/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ export default AbstractEditController.extend(AddNewPatient, ChargeActions, Diagn
}
}),

updateButtonText: function() {
updateButtonText: computed('model.{checkIn,isNew}', function() {
let i18n = this.get('i18n');
if (this.get('model.checkIn')) {
return i18n.t('visits.buttons.checkIn');
} else {
return this._super();
}
}.property('model.checkIn'),
}),

validVisitTypes: function() {
let outPatient = this.get('model.outPatient');
Expand Down

0 comments on commit 5441db8

Please sign in to comment.