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

MA-19935: Implement history-less modal close #437

Merged

Conversation

pasha-nikitin-2003
Copy link
Contributor

routeNavigator.hideModal(false, {replacePanel: true})} - если история переходов пуста, то новая запись не будет добавлена. Можно использовать следующий вариант:

const isFirstPage = useFirstPageCheck();
routeNavigator.hideModal(false, {replacePanel: isFirstPage})}

routeNavigator.hideModal(true) - всегда закрываем модальную страницу с добавлением позиции в историю

routeNavigator.hideModal(true, {replacePanel: true})) - всегда закрываем модальную страницу через replace, плохая практика, так как при закрытии модальной страницы, будет сохраняться дубликат предыдущей записи.

@pasha-nikitin-2003 pasha-nikitin-2003 requested a review from a team as a code owner October 28, 2024 22:10
@pasha-nikitin-2003 pasha-nikitin-2003 force-pushed the pavelnikitin/feature/modal-close-no-history/MA-19935 branch from 342b472 to 48199af Compare October 29, 2024 10:08
nshvyryaev
nshvyryaev previously approved these changes Oct 29, 2024
@pasha-nikitin-2003 pasha-nikitin-2003 force-pushed the pavelnikitin/feature/modal-close-no-history/MA-19935 branch from f90220c to ca4ca71 Compare October 30, 2024 14:23
@pasha-nikitin-2003 pasha-nikitin-2003 merged commit 1cf8469 into master Oct 30, 2024
1 check passed
pasha-nikitin-2003 added a commit that referenced this pull request Nov 7, 2024
…o-history/MA-19935

MA-19935: Implement history-less modal close
pasha-nikitin-2003 added a commit that referenced this pull request Nov 7, 2024
…o-history/MA-19935

MA-19935: Implement history-less modal close
@pasha-nikitin-2003 pasha-nikitin-2003 deleted the pavelnikitin/feature/modal-close-no-history/MA-19935 branch November 12, 2024 15:13
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.

5 participants