File tree 3 files changed +8
-2
lines changed
angular-primeng-app/src/app
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ <h1 class="title">{{ post.title }}</h1>
7
7
< div class ="author-info ">
8
8
@if (isTeam) {
9
9
< p-avatarGroup styleClass ="mb-3 " >
10
- < p-avatar [image] ="post.author.profilePicture " size ="large " shape ="circle " title ="{{ post.author.name }} "> </ p-avatar >
10
+ < p-avatar [image] ="post.author.profilePicture " size ="large " shape ="circle " title ="{{ post.author.username }} "> </ p-avatar >
11
11
@for (coAuthor of post.coAuthors; track coAuthor.username) {
12
12
< p-avatar [image] ="coAuthor.profilePicture " size ="large " shape ="circle " title ="{{ coAuthor.username}} "> </ p-avatar >
13
13
}
14
14
</ p-avatarGroup >
15
15
} @else {
16
- < p-avatar [image] ="post.author.profilePicture " size ="large " shape ="circle " title ="{{ post.author.name }} "> </ p-avatar >
16
+ < p-avatar [image] ="post.author.profilePicture " size ="large " shape ="circle " title ="{{ post.author.username }} "> </ p-avatar >
17
17
}
18
18
< div class ="author-text ">
19
19
< span class ="author-name "> {{post.author.name}} {{isTeam && post.coAuthors.length > 0 ? 'with ' + post.coAuthors.length + ' co-author' + (post.coAuthors.length > 1 ? 's' : '') : ''}}</ span >
Original file line number Diff line number Diff line change @@ -136,7 +136,9 @@ export const GET_SINGLE_POST = gql`
136
136
name
137
137
}
138
138
author {
139
+ id
139
140
name
141
+ username
140
142
profilePicture
141
143
}
142
144
coAuthors {
@@ -172,7 +174,9 @@ export const SEARCH_POSTS = gql`
172
174
url
173
175
}
174
176
author {
177
+ id
175
178
name
179
+ username
176
180
}
177
181
publishedAt
178
182
title
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ export interface Tag {
24
24
}
25
25
26
26
export interface Author {
27
+ id : string ,
27
28
name : string ;
29
+ username : string ,
28
30
profilePicture : string ;
29
31
socialMediaLinks : SocialMediaLinks ;
30
32
}
You can’t perform that action at this time.
0 commit comments