Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a 'Save and Preview' button and made the 'Save' button fire an alert when successful and reload the page so changes are reflected. #701

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hannylicious
Copy link

@hannylicious hannylicious commented Oct 20, 2019

Issue(s) Resolved

#92

Fixes #

Related Issues / Links

Description of Changes

https://user-images.githubusercontent.com/3648225/67443853-3605e400-f5cc-11e9-8ae3-422934e2af32.gif

  • Wrote at least one-line docstrings (for any new functions)
  • Added unit test(s) covering the changes (if testable)
  • Included a screenshot or animation (if affecting the UI, see Licecap)
  • Link to corresponding documentation pull request for getlektor.com

Per the recommendation in issue #92 I added a secondary button. The 'Save Changes' button now alerts the user on successful changes and the 'Save and Preview' button saves the changes and then takes the user to the preview (same as before)

lektor/admin/static/js/views/EditPage.jsx Outdated Show resolved Hide resolved
lektor/admin/static/js/views/EditPage.jsx Outdated Show resolved Hide resolved
lektor/admin/static/js/views/EditPage.jsx Outdated Show resolved Hide resolved
lektor/admin/static/js/views/EditPage.jsx Outdated Show resolved Hide resolved
lektor/admin/static/js/views/EditPage.jsx Outdated Show resolved Hide resolved
@runfalk
Copy link
Member

runfalk commented Oct 21, 2019

Thank you for your contribution! I've added some comments to your PR.

…he dialog. Adjusted the SlideDialog component to refresh the page on close by escape or by clicking close text (this may not be desired - unsure)
@goanpeca
Copy link
Member

@hannylicious thanks or working on this. Could you add a screenshot of how it looks on the description of this issue?

Since it is a UI change, it helps to see the actual image of how it looks.

@hannylicious
Copy link
Author

Peek 2019-10-23 19-29

This is a gif showing the new buttons in action and the page refresh on successDialog close. Don't mind the index.html template not showing up.

@yagebu yagebu mentioned this pull request Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants