[TASK] Migrate Localization wizard to MultiStepWizard component
In order to deprecate the inferior Wizard component introduced back in TYPO3 v7, the Localization wizard is migrated to the MultiStepWizard component. In the same run, the opportunity to cleanup the code a bit is taken: * replace `.then()` callback hell with async/await * use setting "API" of MSW instead of local properties * steps that don't allow interaction are skipped from composition Also, some minor quirks in MSW are fixed without doing major refactorings: * `forceSelection` is checked and enforced before running callbacks that may unlock any buttons, otherwise leading to a unresolvable situation * the "previous" button is now automatically (un)locked, depending on whether there are previous steps * the content of the slide that is slid to is reset as it may have been altered in a slide callback Resolves: #103155 Releases: main Change-Id: I35d5d4a14b7635c0df3f5248491f0cc45074c430 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83040 Tested-by:Andreas Nedbal <andy@pixelde.su> Tested-by:
Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Andreas Nedbal <andy@pixelde.su>
Showing
- Build/Sources/TypeScript/backend/localization.ts 275 additions, 281 deletionsBuild/Sources/TypeScript/backend/localization.ts
- Build/Sources/TypeScript/backend/multi-step-wizard.ts 38 additions, 17 deletionsBuild/Sources/TypeScript/backend/multi-step-wizard.ts
- typo3/sysext/backend/Resources/Private/Language/locallang_layout.xlf 18 additions, 4 deletions...t/backend/Resources/Private/Language/locallang_layout.xlf
- typo3/sysext/backend/Resources/Public/JavaScript/localization.js 1 addition, 1 deletion...ysext/backend/Resources/Public/JavaScript/localization.js
- typo3/sysext/backend/Resources/Public/JavaScript/multi-step-wizard.js 1 addition, 1 deletion.../backend/Resources/Public/JavaScript/multi-step-wizard.js
Please register or sign in to comment