[TASK] Improve wording of upgrade wizards in Install Tool 72/57272/3
authorGeorg Ringer <georg.ringer@gmail.com>
Wed, 20 Jun 2018 15:02:23 +0000 (17:02 +0200)
committerMathias Brodala <mbrodala@pagemachine.de>
Thu, 21 Jun 2018 08:59:10 +0000 (10:59 +0200)
Change the misleading headling "Available wizards" and
switch color of progress bar to success if 100% reached.

Resolves: #85299
Releases: master, 8.7
Change-Id: I6e08da59313fe9efc51f3e4e061a4d3068cadc80
Reviewed-on: https://review.typo3.org/57272
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: David Bruchmann <davidbruchmann@gmail.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
typo3/sysext/install/Resources/Private/Templates/Upgrade/UpgradeWizards.html
typo3/sysext/install/Resources/Public/JavaScript/Modules/UpgradeWizards.js

index 5dffac5..bf136e6 100644 (file)
 
 <hr>
 
-<h4>Available wizards</h4>
+<h4>Upgrade status</h4>
+<p>Progress of upgrade wizards:</p>
 <div class="upgradeWizards-wizards-output t3js-upgradeWizards-wizards-output"></div>
 
 <hr>
index f291996..aa426e2 100644 (file)
@@ -296,6 +296,10 @@ define([
               var percent = 100;
               if (numberOfWizardsTodo > 0) {
                 percent = ((numberOfWizards - numberOfWizardsTodo) / data.wizards.length) * 100;
+              } else {
+                list.find('.progress-bar')
+                  .removeClass('progress-bar-info')
+                  .addClass('progress-bar-success');
               }
               list.find('.progress-bar')
                 .css('width', percent + '%')