domino
domino copied to clipboard
[Frontend] - Clean editor on workspace change
If user change workspace the workflow editor data must be clean.
If the user has a built workflow on editor page and decide to change workspace we will be rendering a workflow with wrong pieces on editor page.
The backend validation denies the user request to create the workflow but I think it is better to clean the workflow page as well since the current workflow data is useless.
We can add a warning to workspace change if there is any data on workflow editor, something like:
You have an unsaved workflow for this workspace, are you sure you want to change the workspace? Your unsaved workflow will be lost
What you think about it? @nathan-vm @luiztauffer
I agree with that