Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed userbar issue on home page
[portal.git]
/
portal-FE-common
/
src
/
app
/
layout
/
components
/
userbar
/
userbar.component.ts
diff --git
a/portal-FE-common/src/app/layout/components/userbar/userbar.component.ts
b/portal-FE-common/src/app/layout/components/userbar/userbar.component.ts
index
661317b
..
d3680c9
100644
(file)
--- a/
portal-FE-common/src/app/layout/components/userbar/userbar.component.ts
+++ b/
portal-FE-common/src/app/layout/components/userbar/userbar.component.ts
@@
-82,14
+82,15
@@
export class UserbarComponent implements OnInit {
// $log.error('UserbarCtrl::updateActiveUsers: failed to get active user');
this.stop();
} else {
// $log.error('UserbarCtrl::updateActiveUsers: failed to get active user');
this.stop();
} else {
- var maxItems =
2
5;
+ var maxItems = 5;
if (_res.length < maxItems)
maxItems = _res.length;
for (var i = 0; i < maxItems; i++) {
var data = {
userId: _res[i],
if (_res.length < maxItems)
maxItems = _res.length;
for (var i = 0; i < maxItems; i++) {
var data = {
userId: _res[i],
- linkQ: this.api.linkQ,
- linkPic: this.api.linkPic
+ linkQ: this.sanitizer.bypassSecurityTrustResourceUrl(this.api.linkQ + _res[i]),
+ linkPic: this.api.linkPic + _res[i],
+ linkPicURL:this.api.linkPic
}
this.userList.push(data);
}
}
this.userList.push(data);
}