Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…mer/issues/145

magento2-login-as-customer/issues/145: Spinner/Loader should appear before page content.
  • Loading branch information
naydav authored May 11, 2020
2 parents 0bbaf70 + 7b2498a commit 71d98db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@
* See COPYING.txt for license details.
*/
/** @var \Magento\Framework\View\Element\Template $block */
/** @var \Magento\Framework\Escaper $escaper */
?>

<div class="loading-mask">
<div class="loader">
<img src="<?= $escaper->escapeUrl($block->getViewFileUrl('images/loader-1.gif')) ?>"
alt="<?= $escaper->escapeHtmlAttr(__('Loading...')) ?>"
style="position: absolute;">
</div>
</div>

<script type="text/x-magento-init">
{
"*": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ define([
'use strict';

return function (config) {
$('body').trigger('processStart');
customerData.reload(sectionConfig.getSectionNames()).done(function () {
window.location.href = config.redirectUrl;
});
Expand Down

0 comments on commit 71d98db

Please sign in to comment.