mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-28 07:20:49 -04:00
[admin] when impersonating, allow removing account without admin getting logged out
This commit is contained in:
parent
600ed48f8a
commit
50a55cc380
@ -325,7 +325,12 @@
|
||||
await this.$confirm(this.$t('user.deleteAccountConfirm'), 'danger');
|
||||
|
||||
const response = await this.$post(`/user/delete`);
|
||||
this.logout();
|
||||
|
||||
if (this.impersonationActive) {
|
||||
this.stopImpersonation();
|
||||
} else {
|
||||
this.logout();
|
||||
}
|
||||
},
|
||||
async setAvatar(source) {
|
||||
const response = await this.$post(`/user/set-avatar`, {source});
|
||||
|
@ -294,7 +294,7 @@ import {deepSet, head} from "../src/helpers";
|
||||
localeFilter: true,
|
||||
adminsFilter: false,
|
||||
usersShown: false,
|
||||
adminNotifications: this.$user().adminNotifications ?? 7,
|
||||
adminNotifications: this.$user() ? (this.$user().adminNotifications ?? 7) : 7,
|
||||
translator,
|
||||
missingTranslations: translator.listMissingTranslations(),
|
||||
abuseReports: undefined,
|
||||
|
Loading…
x
Reference in New Issue
Block a user