@asd20/ui 3.2.850 → 3.2.851
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="photostrip"></div>
|
|
4
4
|
|
|
5
5
|
<section class="asd20-primary-header" aria-label="Primary message">
|
|
6
|
-
<p v-if="userGivenName" class="greeting">Hi, {{ userGivenName }}.</p>
|
|
6
|
+
<p v-if="userGivenName && userGivenName !== ''" class="greeting">Hi, {{ userGivenName }}.</p>
|
|
7
7
|
<asd20-messaging id="main" v-bind="firstMessage"></asd20-messaging>
|
|
8
8
|
<div class="image-container">
|
|
9
9
|
<img
|
|
@@ -96,8 +96,8 @@ export default {
|
|
|
96
96
|
display: flex;
|
|
97
97
|
flex-shrink: 0;
|
|
98
98
|
flex-direction: column;
|
|
99
|
-
justify-content:
|
|
100
|
-
align-items:
|
|
99
|
+
justify-content: flex-start;
|
|
100
|
+
align-items: flex-start;
|
|
101
101
|
background: var(--website-homepage-header__background-color)
|
|
102
102
|
var(--website-homepage-header__background-style);
|
|
103
103
|
background-size: cover;
|
|
@@ -106,7 +106,6 @@ export default {
|
|
|
106
106
|
padding: space(3) space(1) space(3) space(1);
|
|
107
107
|
// margin-top: space(1);
|
|
108
108
|
.greeting {
|
|
109
|
-
align-self: start;
|
|
110
109
|
font-family: var(--website-typography__font-family-headlines);
|
|
111
110
|
@include fluid-type($base-font-size * 1.2, $base-font-size * 1.4);
|
|
112
111
|
color: var(--website-homepage-header__foreground-color);
|
|
@@ -21,21 +21,22 @@ export default {
|
|
|
21
21
|
mixins: [userProfileMixin, userGroupsMixin],
|
|
22
22
|
computed: {
|
|
23
23
|
userDisplayName() {
|
|
24
|
-
return this._userProfile.displayName || '
|
|
24
|
+
return (this._userProfile && this._userProfile.displayName) || ''
|
|
25
25
|
},
|
|
26
26
|
userGivenName() {
|
|
27
|
-
return this._userProfile.givenName || '
|
|
27
|
+
return (this._userProfile && this._userProfile.givenName) || ''
|
|
28
28
|
},
|
|
29
29
|
userJobTitle() {
|
|
30
|
-
return this._userProfile.jobTitle || '
|
|
30
|
+
return (this._userProfile && this._userProfile.jobTitle) || ''
|
|
31
31
|
},
|
|
32
32
|
userOfficeLocation() {
|
|
33
|
-
return this._userProfile.officeLocation || '
|
|
33
|
+
return (this._userProfile && this._userProfile.officeLocation) || ''
|
|
34
34
|
},
|
|
35
35
|
userGroupsList() {
|
|
36
|
-
return this._userGroups.length > 0
|
|
36
|
+
return (this._userGroups && this._userGroups.length > 0)
|
|
37
37
|
? this._userGroups.map(group => group.displayName).join(', ')
|
|
38
38
|
: 'No groups assigned'
|
|
39
39
|
},
|
|
40
|
-
}
|
|
40
|
+
}
|
|
41
|
+
|
|
41
42
|
}
|