@asd20/ui 3.2.850 → 3.2.852
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,9 @@
|
|
|
3
3
|
<div class="photostrip"></div>
|
|
4
4
|
|
|
5
5
|
<section class="asd20-primary-header" aria-label="Primary message">
|
|
6
|
-
<
|
|
6
|
+
<client-only>
|
|
7
|
+
<p v-if="userGivenName && userGivenName !== ''" class="greeting">Hi, {{ userGivenName }}.</p>
|
|
8
|
+
</client-only>
|
|
7
9
|
<asd20-messaging id="main" v-bind="firstMessage"></asd20-messaging>
|
|
8
10
|
<div class="image-container">
|
|
9
11
|
<img
|
|
@@ -96,8 +98,8 @@ export default {
|
|
|
96
98
|
display: flex;
|
|
97
99
|
flex-shrink: 0;
|
|
98
100
|
flex-direction: column;
|
|
99
|
-
justify-content:
|
|
100
|
-
align-items:
|
|
101
|
+
justify-content: flex-start;
|
|
102
|
+
align-items: flex-start;
|
|
101
103
|
background: var(--website-homepage-header__background-color)
|
|
102
104
|
var(--website-homepage-header__background-style);
|
|
103
105
|
background-size: cover;
|
|
@@ -106,7 +108,6 @@ export default {
|
|
|
106
108
|
padding: space(3) space(1) space(3) space(1);
|
|
107
109
|
// margin-top: space(1);
|
|
108
110
|
.greeting {
|
|
109
|
-
align-self: start;
|
|
110
111
|
font-family: var(--website-typography__font-family-headlines);
|
|
111
112
|
@include fluid-type($base-font-size * 1.2, $base-font-size * 1.4);
|
|
112
113
|
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
|
}
|