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

Move modal alert to inline #958

merged 1 commit into from
Mar 29, 2017

Conversation

melissahie
Copy link
Contributor

@melissahie melissahie commented Feb 25, 2017

Fixes #377

Changes proposed in this pull request:

  • Take out modal
  • Show inline alert above button
  • Hide inline alert after 3000ms

image

@billybonks @jglovier

Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

@melissahie thanks for the PR! There is a small code formatting issue mentioned below that needs to be addressed. Ideally I would like to see this added to the edit-panel component. That way it can be used on all edit screens instead of just patient.

}));
$('.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.

@manaswinidas
Copy link
Contributor

@jkleinsc Can I help you add inline alert to the edit-panel component and fix this travis error?

@jkleinsc
Copy link
Member

jkleinsc commented Mar 6, 2017

@dasManaswini this is @melissahie's PR so as far as fixing the Travis error, that would need to be done from @melissahie's fork and branch here: https://github.com/melissahie/hospitalrun-frontend/tree/enhancement/move_modal_to_inline, so you would need to fork that repo, fix the error and submit your own PR.

In regards to adding this to the edit-panel component, I would create a fork off of this repo (https://github.com/HospitalRun/hospitalrun-frontend) and modify https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/components/edit-panel.js and https://github.com/HospitalRun/hospitalrun-frontend/blob/master/app/templates/components/edit-panel.hbs to temporarily display the markup when a value is set on the edit-panel component.

Hope that helps. Let me know if you have further questions.

@manaswinidas
Copy link
Contributor

I am still working on this edit- panel component. Please add a Work in progress label

@jkleinsc jkleinsc merged commit 4503f77 into HospitalRun:master Mar 29, 2017
@melissahie melissahie deleted the enhancement/move_modal_to_inline branch April 4, 2017 04:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants