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

fix: remove other action buttons when in print preview #1974

Merged
merged 3 commits into from
Sep 14, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Sep 14, 2021

To prevent the user from accidentally losing their changes while in print preview mode, remove all action buttons other than "Exit print preview". We realized there could be some confusion between "Exit print preview" and "Exit without saving".

The Exit print preview button jumps left from the Print preview button, which is maybe not ideal.

The files changed view looks like major changes were made, but the only change is the addition of the !props.isPrintPreviewView for all the buttons. Note that there are other checks for displaying those buttons as well, like access level for the Delete and Save buttons, so there is some added complexity and additional factors coming into play there.

exit.print.preview.mov

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Sep 14, 2021

🚀 Deployed on https://pr-1974--dhis2-dashboard.netlify.app

@jenniferarnesen jenniferarnesen enabled auto-merge (squash) September 14, 2021 16:15
@jenniferarnesen jenniferarnesen merged commit e9a54d1 into master Sep 14, 2021
@jenniferarnesen jenniferarnesen deleted the fix/text-and-button-fixes branch September 14, 2021 16:21
dhis2-bot added a commit that referenced this pull request Sep 15, 2021
## [31.19.11](v31.19.10...v31.19.11) (2021-09-15)

### Bug Fixes

* **translations:** sync translations from transifex (master) ([#1968](#1968)) ([66070be](66070be))
* analytics@20.4.7, data-visualizer-plugin@38.0.13 ([#1981](#1981)) ([30b25fb](30b25fb))
* in small screen make the "editing not possible" message the same whether in create or edit mode ([#1972](#1972)) ([1b9a193](1b9a193))
* remove other action buttons when in edit mode print preview ([#1974](#1974)) ([e9a54d1](e9a54d1))
* when loading a dashboard set the loaded flag after the fetch so state doesn't toggle back and forth  ([#1975](#1975)) ([c9b4ff7](c9b4ff7))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.19.11 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

jenniferarnesen added a commit that referenced this pull request Jan 17, 2022
Backport of #1974

To prevent the user from accidentally losing their changes while in print preview mode, remove all action buttons other than "Exit print preview".

The files changed view looks like major changes were made, but the only change is the addition of the !props.isPrintPreviewView for all the buttons.
jenniferarnesen added a commit that referenced this pull request Jan 17, 2022
Backport of #1974

To prevent the user from accidentally losing their changes while in print preview mode, remove all action buttons other than "Exit print preview".

The files changed view looks like lots of changes were made, but the only change is the addition of the !props.isPrintPreviewView for all the buttons.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants