mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 22:01:13 +00:00
Fixing delete acct logout bug.
This commit is contained in:
parent
b0e456d754
commit
277cd2ac37
1 changed files with 2 additions and 2 deletions
|
@ -1179,7 +1179,6 @@ export class Person extends Component<any, PersonState> {
|
||||||
WebSocketService.Instance.send(
|
WebSocketService.Instance.send(
|
||||||
wsClient.deleteAccount(i.state.deleteAccountForm)
|
wsClient.deleteAccount(i.state.deleteAccountForm)
|
||||||
);
|
);
|
||||||
i.handleLogoutClick(i);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setUserInfo() {
|
setUserInfo() {
|
||||||
|
@ -1273,7 +1272,8 @@ export class Person extends Component<any, PersonState> {
|
||||||
deleteAccountLoading: false,
|
deleteAccountLoading: false,
|
||||||
deleteAccountShowConfirm: false,
|
deleteAccountShowConfirm: false,
|
||||||
});
|
});
|
||||||
this.context.router.history.push("/");
|
UserService.Instance.logout();
|
||||||
|
window.location.href = "/";
|
||||||
} else if (op == UserOperation.AddAdmin) {
|
} else if (op == UserOperation.AddAdmin) {
|
||||||
let data = wsJsonToRes<AddAdminResponse>(msg).data;
|
let data = wsJsonToRes<AddAdminResponse>(msg).data;
|
||||||
this.state.siteRes.admins = data.admins;
|
this.state.siteRes.admins = data.admins;
|
||||||
|
|
Loading…
Reference in a new issue