[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:
Vito
2017-08-14 03:17:17 -07:00
committed by Mario Romano
parent 8b4261acb3
commit 70ef58e03c
20 changed files with 383 additions and 274 deletions

View File

@@ -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;
}
}