File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
app/code/Magento/Customer
view/frontend/templates/account Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -119,4 +119,16 @@ public function getCustomerForgotPasswordUrl()
119
119
{
120
120
return $ this ->getUrl ('customer/account/forgotpassword ' );
121
121
}
122
+
123
+ /**
124
+ * Get global account sharing is enabled or not
125
+ *
126
+ * @return string
127
+ */
128
+ public function isGlobalScopeEnabled ()
129
+ {
130
+ $ shareConfig = \Magento \Framework \App \ObjectManager::getInstance ()
131
+ ->get (\Magento \Customer \Model \Config \Share::class);
132
+ return $ shareConfig ->isGlobalScope ();
133
+ }
122
134
}
Original file line number Diff line number Diff line change 20
20
"*": {
21
21
"Magento_Ui/js/block-loader": "<?= $ block ->escapeJs ($ block ->escapeUrl ($ block ->getViewFileUrl (
22
22
'images/loader-1.gif '
23
- ))) ?> ",
23
+ ))) ?> "
24
+ <?php if ($ block ->isGlobalScopeEnabled ()): ?>
25
+ ,
24
26
"Magento_Customer/js/customer-global-session-loader": {}
27
+ <?php endif ; ?>
25
28
}
26
29
}
27
30
</script>
You can’t perform that action at this time.
0 commit comments