Skip to content

Commit 40c45d0

Browse files
authored
magento2-login-as-customer/issues/95:Incorrect text value. In all places should be used "Login as Customer" instead of "Login As Customer"
2 parents 6b6f428 + dae4c8a commit 40c45d0

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

app/code/Magento/LoginAsCustomer/etc/db_schema.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
10-
<table name="login_as_customer" resource="default" engine="innodb" comment="Magento Login As Customer Table">
10+
<table name="login_as_customer" resource="default" engine="innodb" comment="Magento Login as Customer Table">
1111
<column xsi:type="varchar" name="secret" nullable="false" length="64" comment="Login Secret"/>
1212
<column xsi:type="int" name="customer_id" nullable="false" comment="Customer ID"/>
1313
<column xsi:type="int" name="admin_id" nullable="false" comment="Admin ID"/>

app/code/Magento/LoginAsCustomerApi/Api/ConfigInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
interface ConfigInterface
1616
{
1717
/**
18-
* Check if Login As Customer extension is enabled
18+
* Check if Login as Customer extension is enabled
1919
*
2020
* @return bool
2121
*/

app/code/Magento/LoginAsCustomerLog/Controller/Adminhtml/Log/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Framework\Controller\ResultInterface;
1414

1515
/**
16-
* Login As Customer log grid controller.
16+
* Login as Customer log grid controller.
1717
*/
1818
class Index extends Action implements HttpGetActionInterface
1919
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Magento_LoginAsCustomerLog module
22

3-
The Magento_LoginAsCustomerLog module provides log for Login As Customer functionality
3+
The Magento_LoginAsCustomerLog module provides log for Login as Customer functionality

app/code/Magento/LoginAsCustomerLog/etc/adminhtml/menu.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
1010
<menu>
1111
<add id="Magento_LoginAsCustomerLog::login_log"
12-
title="Login As Customer Log"
12+
title="Login as Customer Log"
1313
module="Magento_LoginAsCustomerLog"
1414
parent="Magento_Customer::customer"
1515
sortOrder="40"

app/code/Magento/LoginAsCustomerUi/Controller/Adminhtml/Login/Login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function execute(): ResultInterface
130130
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
131131

132132
if (!$this->config->isEnabled()) {
133-
$this->messageManager->addErrorMessage(__('Login As Customer is disabled.'));
133+
$this->messageManager->addErrorMessage(__('Login as Customer is disabled.'));
134134
return $resultRedirect->setPath('customer/index/index');
135135
}
136136

app/code/Magento/LoginAsCustomerUi/Controller/Login/Index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use Psr\Log\LoggerInterface;
2222

2323
/**
24-
* Login As Customer storefront login action
24+
* Login as Customer storefront login action
2525
*/
2626
class Index implements HttpGetActionInterface
2727
{
@@ -88,7 +88,7 @@ public function __construct(
8888
}
8989

9090
/**
91-
* Login As Customer storefront login
91+
* Login as Customer storefront login
9292
*
9393
* @return ResultInterface
9494
*/

app/code/Magento/LoginAsCustomerUi/Plugin/Button/ToolbarPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(
5151
}
5252

5353
/**
54-
* Add Login As Customer button.
54+
* Add Login as Customer button.
5555
*
5656
* @param \Magento\Backend\Block\Widget\Button\Toolbar $subject
5757
* @param \Magento\Framework\View\Element\AbstractBlock $context
@@ -87,7 +87,7 @@ public function beforePushButtons(
8787
$buttonList->add(
8888
'guest_to_customer',
8989
[
90-
'label' => __('Login As Customer'),
90+
'label' => __('Login as Customer'),
9191
'onclick' => 'window.lacConfirmationPopup("'
9292
. $this->escaper->escapeHtml($this->escaper->escapeJs($buttonUrl))
9393
. '")',

app/code/Magento/LoginAsCustomerUi/Ui/Customer/Component/Control/LoginAsCustomerButton.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Magento\LoginAsCustomerApi\Api\ConfigInterface;
1717

1818
/**
19-
* Login As Customer button UI component.
19+
* Login as Customer button UI component.
2020
*/
2121
class LoginAsCustomerButton extends GenericButton implements ButtonProviderInterface
2222
{
@@ -64,7 +64,7 @@ public function getButtonData(): array
6464
$isEnabled = $this->config->isEnabled();
6565
if ($isAllowed && $isEnabled) {
6666
$data = [
67-
'label' => __('Login As Customer'),
67+
'label' => __('Login as Customer'),
6868
'class' => 'login login-button',
6969
'on_click' => 'window.lacConfirmationPopup("'
7070
. $this->escaper->escapeHtml($this->escaper->escapeJs($this->getLoginUrl()))
@@ -77,7 +77,7 @@ public function getButtonData(): array
7777
}
7878

7979
/**
80-
* Get Login As Customer login url.
80+
* Get Login as Customer login url.
8181
*
8282
* @return string
8383
*/

app/code/Magento/LoginAsCustomerUi/Ui/Store/Component/Control/LoginAsCustomerButton.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
1111

1212
/**
13-
* Login As Customer button UI component.
13+
* Login as Customer button UI component.
1414
*/
1515
class LoginAsCustomerButton implements ButtonProviderInterface
1616
{
@@ -22,7 +22,7 @@ class LoginAsCustomerButton implements ButtonProviderInterface
2222
public function getButtonData(): array
2323
{
2424
return [
25-
'label' => __('Login As Customer'),
25+
'label' => __('Login as Customer'),
2626
'class' => 'save primary',
2727
'data_attribute' => [
2828
'mage-init' => ['button' => ['event' => 'save']],

0 commit comments

Comments
 (0)