[BUGFIX] Compact clear cache button when one item exists 94/50594/5
authorClaus Due <claus@namelesscoder.net>
Fri, 11 Nov 2016 13:50:38 +0000 (14:50 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 20 Nov 2016 00:23:48 +0000 (01:23 +0100)
commit966351c8ddb5860813f5dfe658774893b1cd477e
treebeb9e4c31aadd36d76f90387c419ac727ed2a392
parentd9bca5745193c5cb723ed9762df1c276d869440d
[BUGFIX] Compact clear cache button when one item exists

This change makes the clear cache toolbar item dynamically
either render a drop-down as it did before, or render a single
link directly if there is only a single clear cache action.

If any hooks or permissions add additional items the drop-
down is rendered again.

Change-Id: Iadac80405bf1152a849d4d4269a9bc0728b0b459
Releases: master
Resolves: #78656
Reviewed-on: https://review.typo3.org/50594
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Philipp Gampe <philipp.gampe@typo3.org>
Tested-by: Philipp Gampe <philipp.gampe@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php
typo3/sysext/backend/Resources/Private/Partials/ToolbarItems/ToolbarItem.html
typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/ClearCacheToolbarItemDropDown.html
typo3/sysext/backend/Resources/Private/Templates/ToolbarItems/ClearCacheToolbarItemSingle.html [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ClearCacheMenu.js