[TASK] Replace icon by the IconFactory actions-document-open-read-only 09/43009/3
authorFrank Nägler <frank.naegler@typo3.org>
Fri, 4 Sep 2015 07:37:56 +0000 (09:37 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 4 Sep 2015 14:56:31 +0000 (16:56 +0200)
Resolves: #68861
Releases: master
Change-Id: I0b1e2db1ea8b986b22d16f6b2191c43bd704caf6
Reviewed-on: http://review.typo3.org/43009
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index 4b5404f..b9bd67f 100644 (file)
@@ -419,7 +419,7 @@ class IconRegistry implements \TYPO3\CMS\Core\SingletonInterface {
                'overlay-read-only' => array(
                        'provider' => FontawesomeIconProvider::class,
                        'options' => array(
-                               'name' => 'minus-circle',
+                               'name' => 'times-circle',
                        )
                ),
        );
index 94b5f3d..9d745a1 100644 (file)
@@ -1242,9 +1242,10 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                // "Edit" link: ( Only if permissions to edit the page-record of the content of the parent page ($this->id)
                if ($permsEdit) {
                        $params = '&edit[' . $table . '][' . $row['uid'] . ']=edit';
-                       $icon = (!$this->isEditable($table) ? IconUtility::getSpriteIcon('actions-document-open-read-only') : $this->iconFactory->getIcon('actions-document-open', Icon::SIZE_SMALL));
+                       $iconIdentifier = 'actions-document-open';
+                       $overlayIdentifier = !$this->isEditable($table) ? 'overlay-read-only' : NULL;
                        $editAction = '<a class="btn btn-default" href="#" onclick="' . htmlspecialchars(BackendUtility::editOnClick($params, '', -1))
-                               . '" title="' . $this->getLanguageService()->getLL('edit', TRUE) . '">' . $icon . '</a>';
+                               . '" title="' . $this->getLanguageService()->getLL('edit', TRUE) . '">' . $this->iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL, $overlayIdentifier) . '</a>';
                } else {
                        $editAction = $this->spaceIcon;
                }