Fix logout compile issue.

This commit is contained in:
andrewlalis 2026-01-07 21:12:34 -05:00
parent 24b531652d
commit f6f152af88
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import AppForm from '@/components/common/form/AppForm.vue'
import FormControl from '@/components/common/form/FormControl.vue'
import FormGroup from '@/components/common/form/FormGroup.vue'
import ModalWrapper from '@/components/common/ModalWrapper.vue'
import { useAuthStore } from '@/stores/auth-store'
import { LogoutReason, useAuthStore } from '@/stores/auth-store'
import { showAlert, showConfirm } from '@/util/alert'
import { hideLoader, showLoader } from '@/util/loader'
import { ref, useTemplateRef } from 'vue'
@ -28,7 +28,7 @@ async function doDeleteUser() {
try {
await api.deleteMyUser()
await showAlert('Your user has been deleted. You will now be logged out.')
authStore.onUserLoggedOut()
authStore.onUserLoggedOut(LogoutReason.USER_LOGGED_OUT)
} catch (err) {
console.error(err)
}