[TASK] Replace icon by IconFactory: apps-toolbar-menu-cache 87/42987/4
authorFrank Nägler <frank.naegler@typo3.org>
Wed, 2 Sep 2015 18:57:27 +0000 (20:57 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 3 Sep 2015 21:22:00 +0000 (23:22 +0200)
Resolves: #69488
Releases: master
Change-Id: Id95d7404175fb20d0b29a8ab5baba085762dfef6
Reviewed-on: http://review.typo3.org/42987
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Backend/ToolbarItems/ClearCacheToolbarItem.php
typo3/sysext/backend/Resources/Public/JavaScript/Toolbar/ClearCacheMenu.js
typo3/sysext/core/Classes/Imaging/IconRegistry.php

index b5165ed..705b2e3 100644 (file)
@@ -129,7 +129,8 @@ class ClearCacheToolbarItem implements ToolbarItemInterface {
         */
        public function getItem() {
                $title = $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:rm.clearCache_clearCache', TRUE);
-               return IconUtility::getSpriteIcon('apps-toolbar-menu-cache', array('title' => $title));
+               $iconRegistry = GeneralUtility::makeInstance(IconFactory::class);
+               return '<span title="' . $title . '">' . $iconRegistry->getIcon('apps-toolbar-menu-cache', Icon::SIZE_SMALL)->render() . '</span>';
        }
 
        /**
index 9a7aada..9611e77 100644 (file)
@@ -19,12 +19,12 @@ define('TYPO3/CMS/Backend/Toolbar/ClearCacheMenu', ['jquery'], function($) {
 
        var ClearCacheMenu = {
                $spinnerElement: $('<span>', {
-                       'class': 't3-icon fa fa-circle-o-notch fa-spin'
+                       'class': 'fa fa-circle-o-notch fa-spin'
                }),
                options: {
                        containerSelector: '#typo3-cms-backend-backend-toolbaritems-clearcachetoolbaritem',
                        menuItemSelector: '.dropdown-menu a',
-                       toolbarIconSelector: '.dropdown-toggle span.t3-icon'
+                       toolbarIconSelector: '.dropdown-toggle i.fa'
                }
        };
 
index d547958..da75f8a 100644 (file)
@@ -40,6 +40,12 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                ),
 
                // Action icons
+               'apps-toolbar-menu-cache' => array(
+                       'provider' => FontawesomeIconProvider::class,
+                       'options' => array(
+                               'name' => 'bolt',
+                       )
+               ),
                'actions-document-close' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(