mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-13 23:35:39 +01:00
add user edit page
This commit is contained in:
@@ -69,8 +69,8 @@ export class HeaderComponent implements OnInit {
|
||||
this.router.navigate(['/user/login']);
|
||||
}
|
||||
|
||||
doLogout() {
|
||||
const user = this.userService.logout();
|
||||
async doLogout() {
|
||||
const user = await this.userService.logout();
|
||||
if (HasFailed(user)) {
|
||||
this.utilService.showSnackBar(user.getReason(), SnackBarType.Error);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user