mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1083] Added user images profile as background to comment and involved people (#2198)
* [ADF-1083] start added image for user search * [ADF-1083] - adding user images and style to involved people * [ADF-1083] added loading of images after page refresh * [ADF-1083] fixed problem related to memory leak and added scss style * [ADF-1083] readded changes for user image * [ADF-1083] start fixing test * [ADF-1083] added user images to comment and profile * [ADF-1083] Fixed processlist test * [ADF-1083] removed mdl unused styles * [ADF-1083] Applied design style * [ADF-1083] fixed tests after rebase
This commit is contained in:
@@ -23,7 +23,7 @@ import { User } from '../models/user.model';
|
||||
@Component({
|
||||
selector: 'adf-comment-list',
|
||||
templateUrl: './comment-list.component.html',
|
||||
styleUrls: ['./comment-list.component.css']
|
||||
styleUrls: ['./comment-list.component.scss']
|
||||
})
|
||||
|
||||
export class CommentListComponent {
|
||||
@@ -63,11 +63,11 @@ export class CommentListComponent {
|
||||
let today = Number.parseInt(this.datePipe.transform(Date.now(), 'yMMdd'));
|
||||
if (givenDate === today) {
|
||||
formattedDate = 'Today, ' + this.datePipe.transform(aDate, 'hh:mm a');
|
||||
}else {
|
||||
} else {
|
||||
let yesterday = Number.parseInt(this.datePipe.transform(Date.now() - 24 * 3600 * 1000, 'yMMdd'));
|
||||
if (givenDate === yesterday) {
|
||||
formattedDate = 'Yesterday, ' + this.datePipe.transform(aDate, 'hh:mm a');
|
||||
}else {
|
||||
} else {
|
||||
formattedDate = this.datePipe.transform(aDate, 'MMM dd y, hh:mm a');
|
||||
}
|
||||
}
|
||||
@@ -78,4 +78,8 @@ export class CommentListComponent {
|
||||
return this.comments && this.comments.length && true;
|
||||
}
|
||||
|
||||
onErrorImageLoad(user: User) {
|
||||
user.userImage = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user