Page MenuHomePhabricator

Don't show warning about losing contents when the user published them
Closed, ResolvedPublic

Description

After successfully publishing the translation contents, the user navigates to the resulting page. In the current implementation, a warning is shown:

XjQKwa0.png (1×720 px, 95 KB)

This warning was introduced in T270484 to warn users that are leaving an in-progress translation, but once the translation is published the contents are already saved in a wiki page and the warning just creates confusion.

This ticket proposes to not show the warning in the specific case where the translation was published.

Event Timeline

I saw that the published translation animation is more slowly than normal. In the moment of a pop-up appears saying if I want to leave the site, when I click in "cancel" option, the translation is not published and redirected to the page.

Screenshot_20210121-133557.jpg (1×720 px, 186 KB)

And when I click on the second option, that is "Exit", it redirects to the published page, instead of redirecting to Content translation dashboard.

Screenshot_20210121-134902.jpg (1×720 px, 133 KB)

And when I click on the second option, that is "Exit", it redirects to the published page, instead of redirecting to Content translation dashboard.

Screenshot_20210121-134902.jpg (1×720 px, 133 KB)

The expected behaviour is to redirect to the page after publishing, without showing the dialog (to be fixed in this ticket), and showing an invite to translate another section (will be implemented as part of T260136). This is intended to encourage users to review the content they just created and continue the translation of another section.