Skip to content

Commit

Permalink
fix: set message-success in setup if we already have the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf committed May 7, 2018
1 parent 98e4a6e commit b76ddf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions setup/pub/magento/setup/select-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ angular.module('select-version', ['ngStorage'])
$scope.upgradeReadyForNext = false;
$scope.upgradeProcessed = false;
$scope.upgradeProcessError = false;
$scope.upgradeAlreadyLatestVersion = false;
$scope.upgradeProcessErrorMessage = '';
$scope.componentsReadyForNext = true;
$scope.componentsProcessed = false;
Expand All @@ -39,6 +40,7 @@ angular.module('select-version', ['ngStorage'])

if ($scope.upgradeProcessError) {
$scope.upgradeProcessErrorMessage = "You're already using the latest version, there's nothing for us to do.";
$scope.upgradeAlreadyLatestVersion = true;
} else {
$scope.selectedOption = [];
$scope.versions = [];
Expand Down
2 changes: 1 addition & 1 deletion setup/view/magento/setup/select-version.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</span>
<span class="message-text">Checking for a new version...</span>
</div>
<div class="message message-error" ng-show="upgradeProcessError">
<div class="message" ng-class="upgradeAlreadyLatestVersion ? 'message-success' : 'message-error'" ng-show="upgradeProcessError">
<span class="message-text" ng-bind-html="upgradeProcessErrorMessage"></span>
</div>
<div class="message" ng-show="upgradeProcessed && !upgradeProcessError && currentVersion">
Expand Down

0 comments on commit b76ddf8

Please sign in to comment.