(bug) fix stopping impersonation didn't clean up switcher entry

This commit is contained in:
Andrea Vos 2023-10-26 18:42:25 +02:00
parent c5a806c65a
commit b422152d91

View File

@ -368,6 +368,7 @@
await this.setAvatar(`${process.env.CLOUDFRONT}/images/${ids[0]}-avatar.png`);
},
async stopImpersonation() {
this.$removeToken(this.$user().username);
this.$cookies.set('token', this.$cookies.get('impersonator'));
this.$cookies.remove('impersonator');
setTimeout(() => window.location.reload(), 300);