File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
app/code/Magento/LoginAsCustomerFrontendUi/view/frontend/web/js/view Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,19 @@ define([
28
28
29
29
customerData . subscribe ( function ( data ) {
30
30
this . fullname = data . fullname ;
31
- this . _updateBanner ( ) ;
31
+ this . updateBanner ( ) ;
32
32
} . bind ( this ) ) ;
33
33
loggedAsCustomerData . subscribe ( function ( data ) {
34
34
this . adminUserId = data . adminUserId ;
35
35
this . websiteName = data . websiteName ;
36
- this . _updateBanner ( ) ;
36
+ this . updateBanner ( ) ;
37
37
} . bind ( this ) ) ;
38
38
39
39
this . fullname = customerData ( ) . fullname ;
40
40
this . adminUserId = loggedAsCustomerData ( ) . adminUserId ;
41
41
this . websiteName = loggedAsCustomerData ( ) . websiteName ;
42
42
43
- this . _updateBanner ( ) ;
43
+ this . updateBanner ( ) ;
44
44
} ,
45
45
46
46
/** @inheritdoc */
@@ -51,7 +51,12 @@ define([
51
51
return this ;
52
52
} ,
53
53
54
- _updateBanner : function ( ) {
54
+ /**
55
+ * Update banner area
56
+ *
57
+ * @returns void
58
+ */
59
+ updateBanner : function ( ) {
55
60
if ( this . adminUserId !== undefined ) {
56
61
this . isVisible ( this . adminUserId ) ;
57
62
}
You can’t perform that action at this time.
0 commit comments