[TASK] Improve styling of "caches flushed" notification 26/57326/3
authorAndreas Wolf <dev@a-w.io>
Fri, 22 Jun 2018 22:34:47 +0000 (00:34 +0200)
committerMathias Brodala <mbrodala@pagemachine.de>
Fri, 22 Jun 2018 22:52:19 +0000 (00:52 +0200)
Change-Id: I1a2459097dfe513b4e40793a74506b56ea858649
Resolves: #85354
Releases: master
Reviewed-on: https://review.typo3.org/57326
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Reviewed-by: Marc Willmann <mw@f7.de>
Tested-by: Marc Willmann <mw@f7.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
typo3/sysext/install/Classes/Controller/MaintenanceController.php
typo3/sysext/install/Resources/Public/JavaScript/Modules/Cache.js

index dd87f75..e6b7b25 100644 (file)
@@ -80,7 +80,7 @@ class MaintenanceController extends AbstractController
         GeneralUtility::makeInstance(ClearCacheService::class)->clearAll();
         GeneralUtility::makeInstance(OpcodeCacheService::class)->clearAllActive();
         $messageQueue = (new FlashMessageQueue('install'))->enqueue(
-            new FlashMessage('Successfully cleared all caches and all available opcode caches.')
+            new FlashMessage('Successfully cleared all caches and all available opcode caches.', 'Caches cleared')
         );
         return new JsonResponse([
             'success' => true,
index 7e5f39f..3b105dc 100644 (file)
@@ -34,7 +34,7 @@ define([
           if (data.success === true && Array.isArray(data.status)) {
             if (data.status.length > 0) {
               data.status.forEach((function(element) {
-                Notification.success(element.message);
+                Notification.success(element.title, element.message);
               }));
             }
           } else {