Skip to content

Commit

Permalink
🔃 [EngCom] Public Pull Requests - 2.2-develop
Browse files Browse the repository at this point in the history
Accepted Public Pull Requests:
 - #15515: [fix] dynamical assigned property in webapi (by @mhauri)
 - #15301: Refactor JavsScript for customer logout (by @patelnimesh1988)
 - #15512: Fixes in ui module (by @mhauri)
 - #15499: Issue 15469: Javascript error dropdowns.js (by @brian-labelle)
 - #15382: Fix for Magnifier in inside mode (by @kacperchara)


Fixed GitHub Issues:
 - #15469: lib/web/mage/dropdowns.js fails when autoclose is set to true (reported by @brian-labelle) has been fixed in #15499 by @brian-labelle in 2.2-develop branch
   Related commits:
     1. 31e3b63

 - #4977: Magnifier doesn't work with mode set to inner (reported by @theycallmepepper) has been fixed in #15382 by @kacperchara in 2.2-develop branch
   Related commits:
     1. c427ff1
  • Loading branch information
magento-engcom-team authored May 27, 2018
2 parents 4405582 + d071e5b commit 6f8fc45
Show file tree
Hide file tree
Showing 9 changed files with 221 additions and 202 deletions.
17 changes: 8 additions & 9 deletions app/code/Magento/Customer/view/frontend/templates/logout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
/** @var \Magento\Framework\View\Element\Template $block */
?>
<p><?= $block->escapeHtml(__('You have signed out and will go to our homepage in 5 seconds.')) ?></p>
<script>
require([
"jquery",
"mage/mage"
], function($){

$($.mage.redirect("<?= $block->escapeJs($block->escapeUrl($block->getUrl())) ?>", "assign", 5000));

});
<script type="text/x-magento-init">
{
"*": {
"Magento_Customer/js/logout-redirect": {
"url": "<?= $block->escapeJs($block->escapeUrl($block->getUrl())) ?>"
}
}
}
</script>
15 changes: 15 additions & 0 deletions app/code/Magento/Customer/view/frontend/web/js/logout-redirect.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'jquery',
'mage/mage'
], function ($) {
'use strict';

return function (data) {
$($.mage.redirect(data.url, 'assign', 5000));
};
});
4 changes: 2 additions & 2 deletions app/code/Magento/Ui/Component/Bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ public function prepare()
}
}

$this->setData('config', array_replace_recursive($config, $this->getConfiguration($this)));
$this->setData('config', array_replace_recursive($config, $this->getConfiguration()));

parent::prepare();

$jsConfig = $this->getConfiguration($this);
$jsConfig = $this->getConfiguration();
$this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ protected function setUp()
$this->items[$this->key] = $this->createPartialMock(\Magento\Ui\Component\Control\Item::class, ['setData']);
$this->actionPool = new ActionPool(
$this->contextMock,
$this->itemFactoryMock,
$this->toolbarBlockMock
$this->itemFactoryMock
);
}

Expand Down
8 changes: 5 additions & 3 deletions app/code/Magento/Webapi/Model/Soap/Fault.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class Fault
const NODE_DETAIL_WRAPPER = 'GenericFault';
/**#@-*/

/**#@-*/
/**
* @var string
*/
protected $_soapFaultCode;

/**
Expand Down Expand Up @@ -114,7 +116,7 @@ public function __construct(
\Magento\Framework\Locale\ResolverInterface $localeResolver,
State $appState
) {
$this->_soapCode = $exception->getOriginator();
$this->_soapFaultCode = $exception->getOriginator();
$this->_parameters = $exception->getDetails();
$this->_wrappedErrors = $exception->getErrors();
$this->stackTrace = $exception->getStackTrace() ?: $exception->getTraceAsString();
Expand Down Expand Up @@ -194,7 +196,7 @@ public function getDetails()
*/
public function getSoapCode()
{
return $this->_soapCode;
return $this->_soapFaultCode;
}

/**
Expand Down
1 change: 1 addition & 0 deletions app/design/frontend/Magento/luma/etc/view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
<var name="height"></var> <!-- Height of magnifier block -->
<var name="eventType">hover</var> <!-- Action that atcivates zoom (hover/click) -->
<var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
<var name="mode">outside</var> <!-- Zoom type (outside/inside) -->
</var>

<var name="breakpoints">
Expand Down
4 changes: 1 addition & 3 deletions lib/web/mage/dropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ define([
}

elem.on('click.toggleDropdown', function () {
var el;
var el = actionElem;

if (options.autoclose === true) {
el = actionElem;

actionElem = $();
$(document).trigger('click.hideDropdown');
actionElem = el;
Expand Down
18 changes: 12 additions & 6 deletions lib/web/mage/gallery/gallery.less
Original file line number Diff line number Diff line change
Expand Up @@ -736,24 +736,30 @@
text-align: center;
top: 0;
z-index: @z-index-10;
overflow: hidden;

.magnifier-large {
width: auto;
height: auto;
max-height: none;
max-width: none;
border: none;
position: absolute;
z-index: @z-index-1;
}
}

.magnifier-loader-text {
margin-top: 10px;
}

.magnifier-large {
position: absolute;
width: 32%;
z-index: @z-index-1;
}

.magnifier-preview {
bottom: 0;
left: 58%;
overflow: hidden;
padding: 0;
position: absolute;
z-index: 2;
top: 215px;
&:not(.hidden) {
background-color: @color-white;
Expand Down
Loading

0 comments on commit 6f8fc45

Please sign in to comment.