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

Move modal alert to inline #958

Merged
merged 1 commit into from
Mar 29, 2017
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
10 changes: 3 additions & 7 deletions app/patients/edit/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,13 +645,9 @@ export default AbstractEditController.extend(BloodTypes, DiagnosisActions, Retur

afterUpdate(record) {
this._updateSequence(record).then(() => {
this.send('openModal', 'dialog', Ember.Object.create({
title: this.get('i18n').t('patients.titles.savedPatient'),
message: this.get('i18n').t('patients.messages.savedPatient', record),
updateButtonAction: 'returnToPatient',
updateButtonText: this.get('i18n').t('patients.buttons.backToPatients'),
cancelButtonText: this.get('i18n').t('buttons.close')
}));
$('.message').show();
$('.message').text(this.get('i18n').t('patients.messages.savedPatient', record));
$(".message").delay(3000).fadeOut(100);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is erroring out in our tests because it should use single quotes instead of double quotes.

});
}

Expand Down
1 change: 1 addition & 0 deletions app/patients/edit/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -464,4 +464,5 @@
{{/unless}}
</div>
{{/em-form}}
<div class="alert alert-success message" style="display:none;"></div>
{{/edit-panel}}