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

editor: fix cancel button behavior. #303

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

zannkukai
Copy link
Contributor

When we use the editor "cancel" button, the basic behavior navigate to
the previous URL. But, when we use the load template function, this
behavior cause to return to the same form (without templates URL
parameters) and you need to click again on "cancel" button.

This commit fixes this problem by skipping the "loading template URL"
from the browser history.

Closes rero/rero-ils#1453

Authored-by: Renaud Michotte renaud.michotte@gmail.com

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@zannkukai zannkukai self-assigned this Nov 18, 2020
When we use the "cancel" button of the editor, the basic behavior is to
navigate to the previous URL. But, when we use the load template function,
this behavior results in reloading the form (without templates URL
parameters) and one needs to click again on "cancel" button.

This commit fixes this problem by skipping the "loading template URL"
from the browser history.

Closes rero/rero-ils#1453

Authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai force-pushed the zan-fix-templates-back branch from fd27a32 to 46bb31b Compare November 18, 2020 15:22
Copy link

@iGormilhit iGormilhit left a comment

Choose a reason for hiding this comment

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

Commit message approved.

@iGormilhit iGormilhit added this to the v0.14.1 milestone Nov 19, 2020
@jma jma merged commit e861755 into rero:dev Nov 19, 2020
@zannkukai zannkukai deleted the zan-fix-templates-back branch December 7, 2020 09:11
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.

Cancel button does not work correctly after loading templates
5 participants