[TASK] Use SVG Icons for permission actions 02/52202/2
authorBenjamin Kott <benjamin.kott@wfp2.com>
Mon, 27 Mar 2017 22:02:28 +0000 (00:02 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Tue, 28 Mar 2017 06:36:36 +0000 (08:36 +0200)
Resolves: #80505
Releases: master
Change-Id: I8188f7c9c63776a41a2f4e5c5077139e55312281
Reviewed-on: https://review.typo3.org/52202
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/beuser/Classes/ContextMenu/ItemProvider.php
typo3/sysext/core/Classes/Imaging/IconRegistry.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index ba1b896..34c734d 100644 (file)
@@ -26,7 +26,7 @@ class ItemProvider extends PageProvider
         'permissions' => [
             'type' => 'item',
             'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_misc.xlf:CM_perms',
-            'iconIdentifier' => 'status-status-locked',
+            'iconIdentifier' => 'actions-lock',
             'callbackAction' => 'openPermissionsModule'
         ],
     ];
index 2ebdd17..39f7510 100644 (file)
@@ -2576,12 +2576,6 @@ class IconRegistry implements SingletonInterface
                 'name' => 'caret-right',
             ]
         ],
-        'status-status-locked' => [
-            'provider' => FontawesomeIconProvider::class,
-            'options' => [
-                'name' => 'lock',
-            ]
-        ],
         'status-status-reference-hard' => [
             'provider' => BitmapIconProvider::class,
             'options' => [
index c249534..a5dc6e4 100644 (file)
@@ -1513,7 +1513,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
                 $href = BackendUtility::getModuleUrl('system_BeuserTxPermission') . '&id=' . $row['uid'] . '&returnId=' . $row['uid'] . '&tx_beuser_system_beusertxpermission[action]=edit';
                 $permsAction = '<a class="btn btn-default" href="' . htmlspecialchars($href) . '" title="'
                     . htmlspecialchars($this->getLanguageService()->getLL('permissions')) . '">'
-                    . $this->iconFactory->getIcon('status-status-locked', Icon::SIZE_SMALL)->render() . '</a>';
+                    . $this->iconFactory->getIcon('actions-lock', Icon::SIZE_SMALL)->render() . '</a>';
                 $this->addActionToCellGroup($cells, $permsAction, 'perms');
             }
             // "New record after" link (ONLY if the records in the table are sorted by a "sortby"-row