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');
|
await this.$confirm(this.$t('user.deleteAccountConfirm'), 'danger');
|
||||||
|
|
||||||
const response = await this.$post(`/user/delete`);
|
const response = await this.$post(`/user/delete`);
|
||||||
this.logout();
|
|
||||||
|
if (this.impersonationActive) {
|
||||||
|
this.stopImpersonation();
|
||||||
|
} else {
|
||||||
|
this.logout();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async setAvatar(source) {
|
async setAvatar(source) {
|
||||||
const response = await this.$post(`/user/set-avatar`, {source});
|
const response = await this.$post(`/user/set-avatar`, {source});
|
||||||
|
@ -294,7 +294,7 @@ import {deepSet, head} from "../src/helpers";
|
|||||||
localeFilter: true,
|
localeFilter: true,
|
||||||
adminsFilter: false,
|
adminsFilter: false,
|
||||||
usersShown: false,
|
usersShown: false,
|
||||||
adminNotifications: this.$user().adminNotifications ?? 7,
|
adminNotifications: this.$user() ? (this.$user().adminNotifications ?? 7) : 7,
|
||||||
translator,
|
translator,
|
||||||
missingTranslations: translator.listMissingTranslations(),
|
missingTranslations: translator.listMissingTranslations(),
|
||||||
abuseReports: undefined,
|
abuseReports: undefined,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user