[TASK] Use correct icons for undo and redo 85/56685/4
authorBjörn Jacob <bjoern.jacob@tritum.de>
Mon, 16 Apr 2018 13:40:23 +0000 (15:40 +0200)
committerBenjamin Kott <benjamin.kott@outlook.com>
Tue, 17 Apr 2018 19:54:58 +0000 (21:54 +0200)
The form editor uses incorrect icons for undo and redo actions.
This patch adds the - till now not existing - redo icon and
sets the correct icon for the actions.

Resolves: #84741
Releases: master
Change-Id: I3c1de4e9c9e662fb477e3cea33522c03aca473a3
Reviewed-on: https://review.typo3.org/56685
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
typo3/sysext/form/Classes/Controller/FormEditorController.php

index 8887907..463b73a 100644 (file)
@@ -353,7 +353,7 @@ class FormEditorController extends AbstractBackendController
                 ->setName('formeditor-undo-form')
                 ->setValue('undo')
                 ->setClasses('t3-form-element-undo-form-button hidden disabled')
-                ->setIcon($this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-view-go-back', Icon::SIZE_SMALL));
+                ->setIcon($this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-edit-undo', Icon::SIZE_SMALL));
 
             $redoButton = $buttonBar->makeInputButton()
                 ->setDataAttributes(['identifier' => 'redoButton'])
@@ -361,7 +361,7 @@ class FormEditorController extends AbstractBackendController
                 ->setName('formeditor-redo-form')
                 ->setValue('redo')
                 ->setClasses('t3-form-element-redo-form-button hidden disabled')
-                ->setIcon($this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-view-go-forward', Icon::SIZE_SMALL));
+                ->setIcon($this->view->getModuleTemplate()->getIconFactory()->getIcon('actions-edit-redo', Icon::SIZE_SMALL));
 
             $buttonBar->addButton($newPageButton, ButtonBar::BUTTON_POSITION_LEFT, 1);
             $buttonBar->addButton($closeButton, ButtonBar::BUTTON_POSITION_LEFT, 2);