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(editor): Fix workflow back button navigation #4546

Merged
merged 3 commits into from
Nov 9, 2022

Conversation

OlegIvaniv
Copy link
Contributor

@OlegIvaniv OlegIvaniv commented Nov 8, 2022

When saving and navigating away from a newly created workflow, we need to replace the /workflow/new route with the /workflow/$id so that when a user comes back, they land on the workflow itself. In order to do this, we have to replace the routes instead of pushing them.
Also, when a user lands on the settings page, the sidebar button should take them to either the previous location, if there's one, or go to the workflows view. In order to do this, we need to store the from route when accessing the Settings. For this, I had to refactor settings routing to use children routes and nested <router-view />. Doing this, we also have to move props: true from the FAKE_DOOR route to the SettingsView route and pass it as props in the component.

CleanShot.2022-11-08.at.14.39.50-converted.mp4

@OlegIvaniv OlegIvaniv added ui Enhancement in /editor-ui or /design-system n8n team Authored by the n8n team labels Nov 8, 2022
@OlegIvaniv OlegIvaniv self-assigned this Nov 8, 2022
@linear
Copy link

linear bot commented Nov 8, 2022

N8N-5247

Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Looks good.

@OlegIvaniv OlegIvaniv merged commit 825637f into master Nov 9, 2022
@OlegIvaniv OlegIvaniv deleted the n8n-5247-fix-wf-save-changes-warning-routes-bug branch November 9, 2022 08:31
MiloradFilipovic added a commit that referenced this pull request Nov 9, 2022
* master:
  fix(editor): Fix workflow back button navigation  (#4546)
  fix(Raindrop Node): Update access token URL (#4542)
  fix(editor): Fix workflow activation from the Workflows view (#4549)
  feat(core): Add ownership, sharing and credential details to `GET /workflows` (#4510)

# Conflicts:
#	packages/editor-ui/src/views/SettingsCommunityNodesView.vue
@n8n-assistant n8n-assistant bot added the Upcoming Release Will be part of the upcoming release label Nov 9, 2022
@janober
Copy link
Member

janober commented Nov 10, 2022

Got released with n8n@0.202.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants