CreateIdentityWizard: Implement rendering for Step.ChooseCreateOrRestore
- This is an adapted copypasta of makeChooseURIStep() as that function also displays radio boxes
CreateIdentityWizard(): Adapt parseFormData to be able to choose the requested step correctly with regards to the new Step.ChooseCreateOrRestore
- I've invested almost two hours in trying different ways of computing which is the next step to come up with the most simple solution.
- The solution which I chose is rather long - it consists of 3 functions. But having those 3 functions makes each of them easy to understand and validate for correctness.
- The opposite of shoving all the code into one function would probably have resulted in large, complex, nested if()s so its better to go for small, simple functions.
- I also tried to comment the functions a lot so they are easy to understand :)
CreateIdentityWizard: Adapt addHiddenFormData() to preserve the form data of the new Step.ChooseCreateOrRestore