domino icon indicating copy to clipboard operation
domino copied to clipboard

[Frontend] - Clean editor on workspace change

Open vinicvaz opened this issue 1 year ago • 1 comments

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

vinicvaz avatar Feb 26 '24 10:02 vinicvaz

I agree with that

luiztauffer avatar Feb 26 '24 15:02 luiztauffer