mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
first_boot: Allow the next steps page to be revisited
- Currently, after the user arrives the 'next steps' page after completing the first setup, trying to refresh the page takes us away from the page to the index page. - Since this page lists a lot of steps, user can't be expected to memorize the contents of the page and perform them one after the another. Opening the links in popups instead of navigating away from page helps but not full solve the problem. - If the page is a regular page and not part of the first step wizard, this page is a simple Django page. It can be refreshed. Back button can be used to view the page after navigating from it again. Tests: - On stable and testing containers, remove the sqlite3 file and start the service. This will trigger the first setup wizard. As a last step of the wizard, the 'setup complete! Next steps:' page is shown. - Refreshing the page works. - Navigating away from the page and using the back button to return to it works. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
7033b7cf1e
commit
35312bd672
3 files changed
+11
-26
No files matched your search
@@ -19,12 +19,6 @@ first_boot_steps = [
|
||||
'url': 'first_boot:welcome',
|
||||
'order': 0
|
||||
},
|
||||
{
|
||||
# TODO: Rename this, or merge with 'firstboot_completed'.
|
||||
'id': 'firstboot_complete',
|
||||
'url': 'first_boot:complete',
|
||||
'order': 10
|
||||
}
|
||||
]
|
||||
|
||||
_all_first_boot_steps = None
|
||||
@@ -96,9 +90,9 @@ def _get_steps():
|
||||
def next_step():
|
||||
"""Return the resolved next first boot step URL required to go to.
|
||||
|
||||
If there are no more step remaining, return index page.
|
||||
If there are no more step remaining, return 'complete' page.
|
||||
"""
|
||||
return next_step_or_none() or 'index'
|
||||
return next_step_or_none() or 'first_boot:complete'
|
||||
|
||||
|
||||
def next_step_or_none():
|
||||
|
||||
Reference in new issue
Block a user