@salesforcedevs/dw-components 1.2.5-canary.1 → 1.2.5-canary.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -91,13 +91,13 @@ ul {
|
|
|
91
91
|
display: inline-block;
|
|
92
92
|
height: 16px;
|
|
93
93
|
margin-left: 6px;
|
|
94
|
-
vertical-align:
|
|
94
|
+
vertical-align: sub;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.login-link-icon {
|
|
98
98
|
display: inline-block;
|
|
99
99
|
margin-left: 6px;
|
|
100
|
-
vertical-align:
|
|
100
|
+
vertical-align: text-bottom;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.login-link-blurb {
|
|
@@ -88,6 +88,13 @@ export default class AvatarButton extends LightningElement {
|
|
|
88
88
|
const { detail } = event;
|
|
89
89
|
if (detail && detail.userInfo) {
|
|
90
90
|
this.userInfo = detail.userInfo;
|
|
91
|
+
|
|
92
|
+
if (!this.isLoggedIn) {
|
|
93
|
+
// If we are not "logged in" but we receive userInfo, it means the user has a valid
|
|
94
|
+
// session cookie that was re-used without login, and we should update the UI to a
|
|
95
|
+
// logged in state.
|
|
96
|
+
this.isLoggedIn = true;
|
|
97
|
+
}
|
|
91
98
|
}
|
|
92
99
|
};
|
|
93
100
|
|