forked from learningequality/kolibri
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description This pull request addresses issue learningequality#12894, where the 'Responsibilities of administrator' step is shown twice when importing from a device with multiple facilities in the Kolibri Setup Wizard. ## Problem The current implementation incorrectly calculates the step count for the import facility flow, leading to a duplicate display of the 'Responsibilities of administrator' page when multiple facilities are present on the device being imported from. ## Solution The solution involves modifying the `PersonalDataConsentForm` component to: 1. Always return step 4 for import facility scenarios, preventing duplicate steps. 2. Correctly calculate the total number of steps based on the number of facilities. 3. Implement proper error handling for permission issues. ## Changes Made - Updated the `step` computed property to always return 4 for import facility scenarios. - Modified the `totalSteps` computed property to correctly handle multiple facilities. - Added a `hasError` state to track permission errors. - Implemented a `checkPermissions` method to verify user permissions. - Enhanced error handling in the `handleContinue` method.
- Loading branch information
1 parent
2b6135f
commit 0e9285a
Showing
1 changed file
with
133 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters