oops
This commit is contained in:
parent
9b69470e3f
commit
82c45fd58b
@ -331,10 +331,12 @@ export class ViewCanvas {
|
|||||||
|
|
||||||
public setUser(user: IcyNetUser): void {
|
public setUser(user: IcyNetUser): void {
|
||||||
this._user = user;
|
this._user = user;
|
||||||
|
this.picker.setLoggedIn(user);
|
||||||
|
if (user) {
|
||||||
this._userInfo.innerText = user.username;
|
this._userInfo.innerText = user.username;
|
||||||
this._userInfo.classList.add('logged-in');
|
this._userInfo.classList.add('logged-in');
|
||||||
this._userInfo.setAttribute('href', '/logout');
|
this._userInfo.setAttribute('href', '/logout');
|
||||||
this.picker.setLoggedIn(user);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _updateURL = debounce(() => {
|
private _updateURL = debounce(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user