Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Allow creating bookmark after it was removed
This commit addresses 2 bugs in BE bookmarks management: - After adding and removing a page from bookmarks, it couldn't be re-added without reloading the page. - If a page was bookmarked, the bookmark button wasn't marked as inactive/disabled during BE content rendering. Given the current implementation challenges, like the inability to reload the shortcuts dropdown view and difficulty in modifying backend button classes, most of the handling was delegated to the FE. - BE always returns the shortcut button with necessary data attributes for frontend dispatch actions. BE only sets (or omits) the `data-dispatch-disabled` and `disabled` attributes. - For every bookmarked entry, the BE also provides its `route` and `args`. - Upon FE bookmark removal, the BE response includes the `route` and `args`. The FE uses these to match the shortcut button's data attributes and, if they match, enables the button. This change is effective for both the shortcuts dropdown and the standalone bookmark button. Resolves: #75689 Releases: main, 12.4 Change-Id: I1c67ed0c3faa5b1033e958a6346304a944e53d6d Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81815 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
4 changed files
with
60 additions
and
8 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
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
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
2 changes: 1 addition & 1 deletion
2
typo3/sysext/backend/Resources/Public/JavaScript/toolbar/shortcut-menu.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.