Fix logout compile issue.
This commit is contained in:
parent
24b531652d
commit
f6f152af88
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue