summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/UserModuleDelete.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/UserModuleDelete.vue')
-rw-r--r--webapp/src/components/UserModuleDelete.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/src/components/UserModuleDelete.vue b/webapp/src/components/UserModuleDelete.vue
index 1487be7..c0c54e1 100644
--- a/webapp/src/components/UserModuleDelete.vue
+++ b/webapp/src/components/UserModuleDelete.vue
@@ -55,6 +55,12 @@ export default {
await this.$http.post('/api/users/?delete', {
ids: this.dialog.info.selected.map(x => x.id)
})
+ if (this.doIDeleteMyself) {
+ this.$http.post('/api/authentication/logout').then(response => {
+ this.$router.push('/login')
+ this.$socket.close()
+ })
+ }
this.$store.dispatch('users/loadData')
this.setDialog({ show: false })
}