fix(settings): Fix endless spinner when wiping or deleting accounts

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/46622/head
Christopher Ng 2024-07-18 15:36:32 +07:00 committed by Joas Schilling
parent 64ca4b832d
commit feb9a2f862
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
1 changed files with 5 additions and 2 deletions

@ -278,6 +278,7 @@
import { formatFileSize, parseFileSize } from '@nextcloud/files'
import { getCurrentUser } from '@nextcloud/auth'
import { showSuccess, showError } from '@nextcloud/dialogs'
import { confirmPassword } from '@nextcloud/password-confirmation'
import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
@ -503,8 +504,9 @@ export default {
},
methods: {
wipeUserDevices() {
async wipeUserDevices() {
const userid = this.user.id
await confirmPassword()
OC.dialogs.confirmDestructive(
t('settings', 'In case of lost device or exiting the organization, this can remotely wipe the Nextcloud data from all devices associated with {userid}. Only works if the devices are connected to the internet.', { userid }),
t('settings', 'Remote wipe of devices'),
@ -575,8 +577,9 @@ export default {
}
},
deleteUser() {
async deleteUser() {
const userid = this.user.id
await confirmPassword()
OC.dialogs.confirmDestructive(
t('settings', 'Fully delete {userid}\'s account including all their personal files, app data, etc.', { userid }),
t('settings', 'Account deletion'),