B_024 Optimal Template Journey | Step 1.b: Edit mode on Empty after Non-empty selection
Update 10.Sep.2024
After taking James' feedback into consideration. The dirty value is also used for the scheduler and reminder. However, the hour component doesn't affect this. It is also on prod. We shall address this with another issue.
Update 2.Sep.2024
@alohannu: I have further tested and there is one more thing to adjust.
- select a non-empty template
- see that it is on preview mode - all good for now -
- select the empty template from the dropdown box
- app enters edit mode
- click on the rcc logo
- [ERROR] leave alert gets triggered
- [CORRECT] leave alert should not be triggered
That is to say that from previous workflow, the number 4 is almost correct. The mode is now correct, but the alert modal on empty should not be shown. removeQuestion doesn't seem to emit false to dirty when questions === 0
Problem
-
- select a non-empty template
-
- see that it is on preview mode - all good for now -
-
- select the empty template from the dropdown box
-
- [ERROR] see that it stays on preview mode - not the expectation -
-
- [CORRECT] should enter edit mode & leave alert should not be triggered
See please the workflow here:
Edited by Carlos Sanchez