[DEV] correct display season image
This commit is contained in:
parent
8a0c88c20d
commit
321f741823
@ -40,7 +40,7 @@ export class ElementSeasonComponent implements OnInit {
|
||||
self.cover = null;
|
||||
// self.covers = [];
|
||||
} else {
|
||||
self.cover = response.covers[0];//self.seasonService.getCoverThumbnailUrl(response.covers[0]);
|
||||
self.cover = self.dataService.getCoverThumbnailUrl(response.covers[0]);
|
||||
for(let iii = 0; iii < response.covers.length; iii++) {
|
||||
self.covers.push(self.dataService.getCoverThumbnailUrl(response.covers[iii]));
|
||||
}
|
||||
|
@ -13,8 +13,8 @@ import { UserService, SessionService, SSOService, ArianeService } from '../../se
|
||||
styleUrls: [ './top-menu.less' ]
|
||||
})
|
||||
export class TopMenuComponent implements OnInit {
|
||||
public login: string = null;// Session.getLogin();
|
||||
public avatar: string = null;// Session.getAvatar();
|
||||
public login: string;// Session.getLogin();
|
||||
public avatar: string;// Session.getAvatar();
|
||||
public displayUserMenu: boolean = false;
|
||||
public displayEditMenu: boolean = false;
|
||||
|
||||
@ -48,8 +48,8 @@ export class TopMenuComponent implements OnInit {
|
||||
this.sessionService.change.subscribe((isConnected) => {
|
||||
console.log(`TOP-MENU: receive event from session ...${isConnected}`);
|
||||
if(isConnected === false) {
|
||||
self.login = null;
|
||||
self.avatar = null;
|
||||
self.login = undefined;
|
||||
self.avatar = undefined;
|
||||
self.displayUserMenu = false;
|
||||
} else {
|
||||
self.updateIsJusteLogged();
|
||||
|
@ -101,9 +101,12 @@ export class SessionService {
|
||||
return this.userLogin;
|
||||
}
|
||||
getAvatar() {
|
||||
return 'assets/images/avatar_generic.svg';
|
||||
/* This is not ready :
|
||||
if(this.userAvatar === false) {
|
||||
return 'assets/images/avatar_generic.svg';
|
||||
}
|
||||
return this.userId;
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user