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 FormControl from '@/components/common/form/FormControl.vue'
|
||||||
import FormGroup from '@/components/common/form/FormGroup.vue'
|
import FormGroup from '@/components/common/form/FormGroup.vue'
|
||||||
import ModalWrapper from '@/components/common/ModalWrapper.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 { showAlert, showConfirm } from '@/util/alert'
|
||||||
import { hideLoader, showLoader } from '@/util/loader'
|
import { hideLoader, showLoader } from '@/util/loader'
|
||||||
import { ref, useTemplateRef } from 'vue'
|
import { ref, useTemplateRef } from 'vue'
|
||||||
|
|
@ -28,7 +28,7 @@ async function doDeleteUser() {
|
||||||
try {
|
try {
|
||||||
await api.deleteMyUser()
|
await api.deleteMyUser()
|
||||||
await showAlert('Your user has been deleted. You will now be logged out.')
|
await showAlert('Your user has been deleted. You will now be logged out.')
|
||||||
authStore.onUserLoggedOut()
|
authStore.onUserLoggedOut(LogoutReason.USER_LOGGED_OUT)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue