[TASK] linkvalidator: Calculate option toggle state on render time
This commit changes how the "Toggle all" and option and action button states are determined. Previously, the state was determined via JavaScript, leading to an unexpected rendering change when the module has loaded. To avoid this, the state is now calculated in the controller as the necessary metrics are already known. In the same run, `optionByType.checked` is now a simple bool flag instead of holding arbitrary HTML attributes. Resolves: #103454 Releases: main Change-Id: I2da39063dbb9161873274dadddcc3b0384e36321 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83560 Tested-by:Benjamin Franzke <ben@bnf.dev> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benjamin Franzke <ben@bnf.dev> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Andreas Kienast <a.fernandez@scripting-base.de> Reviewed-by:
Jörg Bösche <typo3@joergboesche.de> Reviewed-by:
Andreas Kienast <a.fernandez@scripting-base.de> Tested-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/linkvalidator/linkvalidator.ts 0 additions, 2 deletionsBuild/Sources/TypeScript/linkvalidator/linkvalidator.ts
- typo3/sysext/linkvalidator/Classes/Controller/LinkValidatorController.php 7 additions, 1 deletion...kvalidator/Classes/Controller/LinkValidatorController.php
- typo3/sysext/linkvalidator/Resources/Private/Partials/CheckOptions.html 2 additions, 2 deletions...inkvalidator/Resources/Private/Partials/CheckOptions.html
- typo3/sysext/linkvalidator/Resources/Private/Templates/Backend/CheckLinks.html 1 addition, 1 deletion...dator/Resources/Private/Templates/Backend/CheckLinks.html
- typo3/sysext/linkvalidator/Resources/Private/Templates/Backend/Report.html 1 addition, 1 deletion...validator/Resources/Private/Templates/Backend/Report.html
- typo3/sysext/linkvalidator/Resources/Public/JavaScript/linkvalidator.js 1 addition, 1 deletion...inkvalidator/Resources/Public/JavaScript/linkvalidator.js
Please register or sign in to comment