Skip to content

Commit

Permalink
Merge pull request #1487 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
[EngCom] Public Pull Requests
 - MAGETWO-72486: response condition order changes. #10826
 - MAGETWO-72465: Enable livereload for watch: commands #10836
 - MAGETWO-72428: Close PayPal popup window in case of rejected request #10820
  • Loading branch information
ishakhsuvarov committed Sep 13, 2017
2 parents 3797563 + b7ad7b2 commit 53072e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ define([
});
customerData.invalidate(['customer']);

if (redirectUrl) {
window.location.href = redirectUrl;
} else if (response.redirectUrl) {
if (response.redirectUrl) {
window.location.href = response.redirectUrl;
} else if (redirectUrl) {
window.location.href = redirectUrl;
} else {
location.reload();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ define(
$('body').trigger('processStop');
customerData.invalidate(['cart']);
});
}.bind(this));
}.bind(this)).fail(function () {
paypalExpressCheckout.checkout.closeFlow();
});
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions dev/tests/unit/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
>
<testsuite name="Magento Unit Tests">
<directory suffix="Test.php">../../../app/code/*/*/Test/Unit</directory>
<directory suffix="Test.php">../../../dev/tools/*/*/Test/Unit</directory>
<directory suffix="Test.php">../../../dev/tools/*/*/*/Test/Unit</directory>
<directory suffix="Test.php">../../../lib/internal/*/*/Test/Unit</directory>
<directory suffix="Test.php">../../../lib/internal/*/*/*/Test/Unit</directory>
<directory suffix="Test.php">../../../setup/src/*/*/Test/Unit</directory>
Expand Down
3 changes: 3 additions & 0 deletions dev/tools/grunt/configs/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ var themeOptions = {};

_.each(themes, function(theme, name) {
themeOptions[name] = {
'options': {
livereload: true
},
'files': [
'<%= combo.autopath(\''+name+'\', path.pub) %>/**/*.less'
],
Expand Down

0 comments on commit 53072e0

Please sign in to comment.