Skip to content

Commit 361239f

Browse files
committed
magento-commerce/magento2-login-as-customer#156: Banner disappear when admin edit customer data from Account Information tab
1 parent 1ad25f9 commit 361239f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

app/code/Magento/LoginAsCustomerFrontendUi/view/frontend/web/js/view/loginAsCustomer.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ define([
2828

2929
customerData.subscribe(function (data) {
3030
this.fullname = data.fullname;
31-
this._updateBanner();
31+
this.updateBanner();
3232
}.bind(this));
3333
loggedAsCustomerData.subscribe(function (data) {
3434
this.adminUserId = data.adminUserId;
3535
this.websiteName = data.websiteName;
36-
this._updateBanner();
36+
this.updateBanner();
3737
}.bind(this));
3838

3939
this.fullname = customerData().fullname;
4040
this.adminUserId = loggedAsCustomerData().adminUserId;
4141
this.websiteName = loggedAsCustomerData().websiteName;
4242

43-
this._updateBanner();
43+
this.updateBanner();
4444
},
4545

4646
/** @inheritdoc */
@@ -51,7 +51,12 @@ define([
5151
return this;
5252
},
5353

54-
_updateBanner: function () {
54+
/**
55+
* Update banner area
56+
*
57+
* @returns void
58+
*/
59+
updateBanner: function () {
5560
if (this.adminUserId !== undefined) {
5661
this.isVisible(this.adminUserId);
5762
}

0 commit comments

Comments
 (0)